修复psid判断类型错误,天津列入新的建模流程
This commit is contained in:
1 parent
bf7950502c
commit
6459771b01
2 files changed
+3
-4
No files matched your search
+2
-2
@@ -39,9 +39,9 @@ def add_task(data):
|
||||
cursor = conn.cursor()
|
||||
|
||||
#判断是否是昆山教学的,是的话优先级设置为默认
|
||||
if data["psid"] == 85:
|
||||
if data["psid"] == '85':
|
||||
sql = f'insert into tasks (task_type, task_key) values ("{data["task_type"]}", "{data["task_key"]}")'
|
||||
elif data["psid"] == 1:
|
||||
elif data["psid"] == '1':
|
||||
#实验室的订单走分布式处理
|
||||
sql = f'insert into task_distributed (task_type, task_key, priority,created_at) values ("{data["task_type"]}", "{data["task_key"]}", 1,"{time.strftime("%Y-%m-%d %H:%M:%S", time.localtime())}")'
|
||||
else:
|
||||
|
||||
Reference in new issue
Block a user