ming %!s(int64=4) %!d(string=hai) anos
pai
achega
1ef00d9b59
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      main.py

+ 2 - 2
main.py

@@ -144,11 +144,11 @@ async def log_test(req:request2):
     db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/AI_anchor?charset=utf8mb4')
     log_table = db['history_input']
     txt_content_seperate_by_dot = ''
-    for txt in text_content:
+    for txt in req.text_content:
         txt_content_seperate_by_dot += txt+","
     txt_content_seperate_by_dot = txt_content_seperate_by_dot[:-1]
     img_urls_seperate_by_dot = ''
-    for iurl in image_urls:
+    for iurl in req.image_urls:
         img_urls_seperate_by_dot += iurl+","
     img_urls_seperate_by_dot[:-1]
     pk = log_table.insert({'name':req.name,'text_content':txt_content_seperate_by_dot,'image_urls':img_urls_seperate_by_dot})