From 24590b230ba7a3d08af7b1fab3647943be45c8be Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Sun, 7 Jul 2024 10:28:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=AF=86=E5=88=AB=E4=B8=AD?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/photo_review.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index 150295f..89c59e0 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -432,6 +432,10 @@ def main(): session = MysqlSession() # 查询需要识别的案子 phhds = session.query(ZxPhhd.pk_phhd).filter(ZxPhhd.exsuccess_flag == '1').limit(PHHD_BATCH_SIZE).all() + # 将状态改为正在识别中 + for phhd in phhds: + phhd.exsuccess_flag = 2 + session.commit() session.close() if phhds: for phhd in phhds: