From 2094f4916a4a345489a8a11f4e28806a4f4f48f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=9B=85=E8=AF=BA=E7=8B=90?= <212194964+foxcyber907@users.noreply.github.com> Date: Mon, 25 Aug 2025 04:18:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8D=9F=E5=9D=8F=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 通过更改638行,使数据库处于损坏状态 --- src/common/database/sqlalchemy_models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/database/sqlalchemy_models.py b/src/common/database/sqlalchemy_models.py index 95ecb4e41..d2cc76a31 100644 --- a/src/common/database/sqlalchemy_models.py +++ b/src/common/database/sqlalchemy_models.py @@ -635,7 +635,7 @@ def get_db_session(): _, SessionLocal = initialize_database() session = SessionLocal() yield session - #session.commit() + session.commit() except Exception: if session: session.rollback()