deployer преди 3 години
родител
ревизия
58ff947bc3
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      api/main.py

+ 2 - 2
api/main.py

@@ -1169,10 +1169,10 @@ def gen_video_queue_eng(name_hash,name,text_content, image_urls,sub_titles,avata
         if first(db.query('SELECT * FROM video_queue_status'))['status'] == 1:#only one row in this table, which is the id 1 one
             print('another process running, leave loop')
             break
-        if first(db.query('SELECT COUNT(1) FROM video_queue where video_type=="eng"'))['COUNT(1)'] == 0:
+        if first(db.query('SELECT COUNT(1) FROM video_queue where video_type="eng"'))['COUNT(1)'] == 0:
             print('all finish, leave loop')
             break
-        top1 = first(db.query('SELECT * FROM video_queue where video_type=="eng"'))
+        top1 = first(db.query('SELECT * FROM video_queue where video_type="eng"'))
         try:
             db.query('UPDATE video_queue_status SET status = 1;')
             c = rpyc.connect("localhost", 8858)