|
@@ -227,11 +227,11 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar):
|
|
|
db = dataset.connect('mysql://choozmo:pAssw0rd@db.ptt.cx:3306/AI_anchor?charset=utf8mb4')
|
|
|
time_stamp = datetime.fromtimestamp(time.time()).strftime("%Y-%m-%d %H:%M:%S")
|
|
|
txt_content_seperate_by_dot = ''
|
|
|
- for txt in req.text_content:
|
|
|
+ for txt in 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 req.image_urls:
|
|
|
+ for iurl in image_urls:
|
|
|
img_urls_seperate_by_dot += iurl+","
|
|
|
img_urls_seperate_by_dot = img_urls_seperate_by_dot[:-1]
|
|
|
db['video_queue'].insert({'name_hash':name_hash,'name':name,'text_content':txt_content_seperate_by_dot,'image_urls':img_urls_seperate_by_dot,'avatar':avatar,'timestamp':time_stamp})
|