修正exsuccess_flag赋值类型

This commit is contained in:
2024-07-07 10:38:23 +08:00
parent e539c3a34c
commit 4f29292c52

View File

@@ -434,7 +434,7 @@ def main():
phhds = session.query(ZxPhhd.pk_phhd).filter(ZxPhhd.exsuccess_flag == '1').limit(PHHD_BATCH_SIZE).all()
# 将状态改为正在识别中
for phhd in phhds:
phhd.exsuccess_flag = 2
phhd.exsuccess_flag = '2'
session.commit()
session.close()
if phhds: