From ae52d0594ec3eb1f0d6c1f62cd994ca34fb7678a Mon Sep 17 00:00:00 2001 From: liuyebo <1515783401@qq.com> Date: Mon, 21 Oct 2024 08:45:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E9=99=A4=E4=B8=B4=E6=97=B6=E5=9B=BE?= =?UTF-8?q?=E7=89=87=E5=8F=A6=E5=A4=96=E5=86=99=E8=84=9A=E6=9C=AC=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_review.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/photo_review.py b/photo_review.py index c8c0137..4b73e62 100644 --- a/photo_review.py +++ b/photo_review.py @@ -26,15 +26,6 @@ if __name__ == '__main__': parser.add_argument('--clean', default=False, type=bool, help='是否将识别中的案子改为待识别状态') args = parser.parse_args() if args.clean: - # 清除临时图片 - for root, dirs, files in os.walk(common_util.get_tmp_img_path(''), topdown=False): - for name in dirs: - folder_path = os.path.join(root, name) - try: - shutil.rmtree(folder_path) - print(f"已删除文件夹: {folder_path}") - except Exception as e: - print(f"删除文件夹 {folder_path} 时出错: {e}") # 启动时清除仍在识别中的案子 session = MysqlSession() update_flag = (update(ZxPhhd).where(ZxPhhd.exsuccess_flag == '2').values(exsuccess_flag='1'))