From 14b518f4afeaf1b95846e0ad81b7b259bedeb1e2 Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Sun, 7 Jul 2024 10:42:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=A1=88=E5=AD=90=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review/photo_review.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/photo_review/photo_review.py b/photo_review/photo_review.py index fc27915..ce8dd70 100644 --- a/photo_review/photo_review.py +++ b/photo_review/photo_review.py @@ -1,4 +1,3 @@ -import concurrent.futures import json import logging import math @@ -431,7 +430,8 @@ def main(): while 1: session = MysqlSession() # 查询需要识别的案子 - phhds = session.query(ZxPhhd.pk_phhd).filter(ZxPhhd.exsuccess_flag == '1').limit(PHHD_BATCH_SIZE).all() + phhds = session.query(ZxPhhd.pk_phhd, ZxPhhd.exsuccess_flag).filter(ZxPhhd.exsuccess_flag == '1').limit( + PHHD_BATCH_SIZE).all() # 将状态改为正在识别中 for phhd in phhds: phhd.exsuccess_flag = '2'