zhangyong 1 éve
szülő
commit
bdf9bbc4df
1 módosított fájl, 7 hozzáadás és 6 törlés
  1. 7 6
      main.py

+ 7 - 6
main.py

@@ -21,16 +21,17 @@ def job_video_stitching():
     koubo_count = sql.get_koubo_account_id()
     jieri_count = sql.get_jieri_account_id()
     ks_yinmei_count = sql.get_ks_yinmei_account_id()
-    if int(ks_yinmei_count) < 10:
-        Common.logger("video").info("开始执行-快手")
-        video_type = "音画美文"
-        channel_type = "kuaishou"
-        VideoStitching.video_stitching(video_type, ks_yinmei_count, channel_type)
-    elif int(jieri_count) < 20:
+    if int(jieri_count) < 20:
         Common.logger("video").info("开始执行-口播-小年")
         video_type = "口播--美文类"
         channel_type = "xiaonian"
         VideoStitching.video_stitching(video_type, koubo_count, channel_type)
+    elif int(ks_yinmei_count) < 10:
+        Common.logger("video").info("开始执行-快手")
+        video_type = "音画美文"
+        channel_type = "kuaishou"
+        VideoStitching.video_stitching(video_type, ks_yinmei_count, channel_type)
+
     elif int(dy_yinmei_count) < 10:
         Common.logger("video").info("开始执行-抖音")
         video_type = "音画美文"