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