aaron-1015 3 anni fa
parent
commit
5cdff1d3be
1 ha cambiato i file con 3 aggiunte e 1 eliminazioni
  1. 3 1
      step_question/apis/main.py

+ 3 - 1
step_question/apis/main.py

@@ -25,6 +25,7 @@ from email.mime.base import MIMEBase
 from email.mime.application import MIMEApplication
 import random
 import requests
+import datetime
 
 
 app = FastAPI()
@@ -132,7 +133,8 @@ async def submit(request: Request):
         'decoration_style': ','.join(form_data.getlist('q6')),
         'decoration_budget': ','.join(form_data.getlist('q7')),
         'decoration_size': ','.join(form_data.getlist('q8')),
-        'src':'SMS'
+        'src':'SMS', 
+        'time_stamp': datetime.datetime.utcnow() + datetime.timedelta(hours=8)
     }
     print(result)