Commit f134ab1ed88342a9f3807b56bae81f8c229ca6c4

Authored by Miguel Barão
2 parents 23f959bd 66c4c6f3
Exists in dev

Merge branch 'dev' of https://git.xdi.uevora.pt/mjsb/aprendizations into dev

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
aprendizations/learnapp.py
... ... @@ -280,7 +280,7 @@ class Application():
280 280 date: str = str(student_state.get_topic_date(tid))
281 281 logger.info('User "%s" finished topic "%s" (level=%.2f)', uid, tid, level)
282 282  
283   - with Session(self._engine) as session:
  283 + with Session(self._engine).no_autoflush as session:
284 284 query = select(StudentTopic) \
285 285 .where(StudentTopic.student_id == uid) \
286 286 .where(StudentTopic.topic_id == tid)
... ...