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(id=label_id).delete() db.query(LabelWorkerModel).filter_by(id=label_id).delete() db.commit() except Exception as e: logger.error(e) db.rollback()