|
@@ -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})
|