Преглед на файлове

查询数据库 增加空校验

zhangyong преди 1 година
родител
ревизия
34dfd55d11
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      main.py

+ 1 - 1
main.py

@@ -27,9 +27,9 @@ def get_account_id():
 def job_video_stitching():
     # 在这里编写需要执行的任务代码
     count = get_account_id()
-    count = str(count).replace('(', '').replace(')', '').replace(',', '')
     if count == None:
         count = 0
+    count = str(count).replace('(', '').replace(')', '').replace(',', '')
     if int(count) < 20:
         Common.logger().info("开始执行")
         VideoStitching.video_stitching()