From 6459771b01027334943ecc0338e2db668e7846c7 Mon Sep 17 00:00:00 2001 From: youwater Date: Wed, 11 Oct 2023 15:33:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpsid=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E9=94=99=E8=AF=AF=EF=BC=8C=E5=A4=A9=E6=B4=A5?= =?UTF-8?q?=E5=88=97=E5=85=A5=E6=96=B0=E7=9A=84=E5=BB=BA=E6=A8=A1=E6=B5=81?= =?UTF-8?q?=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/config.py | 3 +-- libs/libs_db.py | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/libs/config.py b/libs/config.py index aa7f7d2..999e172 100644 --- a/libs/config.py +++ b/libs/config.py @@ -82,14 +82,13 @@ ps_floor_sticker = { "default" : floor_sticker_distances['v2'], "1" : floor_sticker_distances['v5'], "13" : floor_sticker_distances['v1'], - "17" : floor_sticker_distances['v1'], "18" : floor_sticker_distances['v1'], "29" : floor_sticker_distances['v1'], "85" : floor_sticker_distances['v4'], } # 需要加入新建模系统的影棚 -new_make_psids = ['1', '29', '44', '54', '55', '63', '65', '77', '79', '80', '85', '86'] +new_make_psids = ['1', '17', '29', '44', '54', '55', '63', '65', '77', '79', '80', '85', '86'] #企业微信通知人员 notify_user_Ids = ["DongZhangXi","YouShui"] diff --git a/libs/libs_db.py b/libs/libs_db.py index 3aef145..3b5766d 100644 --- a/libs/libs_db.py +++ b/libs/libs_db.py @@ -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: