From e83deda26816fbaf4f20d2a9440b399af3534de8 Mon Sep 17 00:00:00 2001 From: dongchangxi <458593490@qq.com> Date: Mon, 20 Nov 2023 11:09:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E7=B2=BE=E6=A8=A1=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- libs/common.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/libs/common.py b/libs/common.py index e971592..754f93b 100644 --- a/libs/common.py +++ b/libs/common.py @@ -29,14 +29,13 @@ def task_need_high_model(pid): return False - #判断是否需要高精模 - if libs.get_ps_type(pid) == 1: - if libs.aliyun_face(pid): - #calulate_type = 'calculateHighModel' - redis_conn.sadd("calculateHighModel",pid) - return True - else: - redis_conn.sadd("calculateHighModel_no",pid) + #判断是否需要高精模 + if libs.aliyun_face(pid): + #calulate_type = 'calculateHighModel' + redis_conn.sadd("calculateHighModel",pid) + return True + else: + redis_conn.sadd("calculateHighModel_no",pid) return False #判断是否需要photo3参与建模