From df14f81b4d34b7aea88bb5e72cbdaba70f7d728f Mon Sep 17 00:00:00 2001
From: xuyonghao <898441624@qq.com>
Date: 星期三, 08 一月 2025 18:37:43 +0800
Subject: [PATCH] excel触发文件下载

---
 app/service/label.py |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/app/service/label.py b/app/service/label.py
index 3e52196..f69234c 100644
--- a/app/service/label.py
+++ b/app/service/label.py
@@ -62,9 +62,11 @@
             logger.error(e)
             db.rollback()
             # return False
+    print(delete_list)
     for label_id in delete_list:
         try:
-            LabelWorkerModel(label_id=label_id, object_id=object_id).delete()
+            db.query(LabelWorkerModel).filter_by(id=label_id).delete()
+            db.commit()
         except Exception as e:
             logger.error(e)
             db.rollback()

--
Gitblit v1.8.0