From 66c4c6f3c833615fa7b65121fa028550e298d9d9 Mon Sep 17 00:00:00 2001 From: Miguel BarĂ£o Date: Wed, 22 Oct 2025 16:25:19 +0100 Subject: [PATCH] fix sqlalchemy warning --- aprendizations/learnapp.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aprendizations/learnapp.py b/aprendizations/learnapp.py index 9d34de0..a4d3cf7 100644 --- a/aprendizations/learnapp.py +++ b/aprendizations/learnapp.py @@ -276,7 +276,7 @@ class Application(): date: str = str(student_state.get_topic_date(tid)) logger.info('User "%s" finished topic "%s" (level=%.2f)', uid, tid, level) - with Session(self._engine) as session: + with Session(self._engine).no_autoflush as session: query = select(StudentTopic) \ .where(StudentTopic.student_id == uid) \ .where(StudentTopic.topic_id == tid) -- libgit2 0.21.2