Browse Source

MOD:添加任务列表接口

cxyu 3 years ago
parent
commit
96edaba65a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      web_module/tornado_api.py

+ 2 - 2
web_module/tornado_api.py

@@ -540,13 +540,13 @@ class get_all_ad_task(BaseHandler):
         result = sql_tools.get_ad_task(sql_session=sql_session, user_id=user_id)
         task_dict = {}
 
-        localtion = ['微信', '']
+        localtion = ['wechat', '']
         for _ in result:
             task_name, status, task_status_num, create_time, typesetting = _
             print(typesetting)
             typesetting = json.loads(typesetting)
             if typesetting['plan_base'][1] == 'pyq':
-                localtion[1] = '朋友圈'
+                localtion[1] = 'pyq'
             create_time = create_time.strftime("%Y-%m-%d %H:%M:%S")
             if task_name not in task_dict.keys():
                 task_dict[task_name] = {}