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

+ 2 - 0
api/main.py

@@ -419,6 +419,8 @@ def gen_video_queue(name_hash,name,text_content, image_urls,avatar,multiLang,use
     for iurl in image_urls:
         img_urls_seperate_by_dot += iurl+","
     img_urls_seperate_by_dot = img_urls_seperate_by_dot[:-1]
+    state = 'ALTER TABLE `AI_anchor`.`video_queue` ADD COLUMN `mulitLang` INT(11) NULL COMMENT '' AFTER `timestamp`;'
+    db.query(state)
     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})
     while True: