Spaces:
Runtime error
Runtime error
Update main.py
Browse files
main.py
CHANGED
@@ -50,7 +50,7 @@ def create_sentiment_result(sentiment_result: schemas.SentimentResultCreate,text
|
|
50 |
db.commit()
|
51 |
db.refresh(new_sentiment_result)
|
52 |
# Convert datetime objects to strings
|
53 |
-
created_at_str = new_sentiment_result.
|
54 |
textinput_dict = {
|
55 |
"id": new_user.id,
|
56 |
"text_input": new_sentiment_result.text_input,
|
|
|
50 |
db.commit()
|
51 |
db.refresh(new_sentiment_result)
|
52 |
# Convert datetime objects to strings
|
53 |
+
created_at_str = new_sentiment_result.created_at.strftime("%Y-%m-%dT%H:%M:%SZ")
|
54 |
textinput_dict = {
|
55 |
"id": new_user.id,
|
56 |
"text_input": new_sentiment_result.text_input,
|