ming 3 years ago
parent
commit
0b82cfb14b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      main.py

+ 2 - 0
main.py

@@ -151,6 +151,8 @@ async def log_test(req:request2):
     for iurl in req.image_urls:
         img_urls_seperate_by_dot += iurl+","
     img_urls_seperate_by_dot[:-1]
+    time_stamp = datetime.fromtimestamp(time.time())
+    time_stamp = time_stamp.strftime("%Y-%m-%d %H:%M:%S")
     pk = log_table.insert({'name':req.name,'text_content':txt_content_seperate_by_dot,'image_urls':img_urls_seperate_by_dot})
     return pk