xclasscode commited on
Commit
c65a561
·
verified ·
1 Parent(s): 6b58d7e

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -1
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.createdAt.strftime("%Y-%m-%dT%H:%M:%SZ")
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,