From 82f5101c87e21d53db0a537671368c14c75206c4 Mon Sep 17 00:00:00 2001 From: chengminglong <123204464@qq.com> Date: Mon, 18 Aug 2025 15:15:08 +0800 Subject: [PATCH] =?UTF-8?q?commit=20by=20Kalman.CHENG=20=E2=98=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dsLightRag/Routes/TeachingModel/api/ThemeController.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/dsLightRag/Routes/TeachingModel/api/ThemeController.py b/dsLightRag/Routes/TeachingModel/api/ThemeController.py index d625a101..6b9ccf12 100644 --- a/dsLightRag/Routes/TeachingModel/api/ThemeController.py +++ b/dsLightRag/Routes/TeachingModel/api/ThemeController.py @@ -88,8 +88,6 @@ async def save(request: Request): check_theme_result = await find_by_sql(check_theme_sql,()) if check_theme_result: return {"success": False, "message": "该主题名称已存在!"} - if short_name.length > 50: - return {"success": False, "message": "主题英文简称不能超过50个字符!"} check_short_name_sql = "SELECT short_name FROM t_ai_teaching_model_theme WHERE is_deleted = 0 and bureau_id = '" + bureau_id + "' and short_name = '" + short_name + "'" if id != 0: check_short_name_sql += " and id <> " + str(id)