From b7e6783ae72a96687f288ace1b2952e341aa8329 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Wed, 31 May 2023 12:25:40 +0200 Subject: [PATCH] =?UTF-8?q?More=20debug=20info=20(save=5Fnote=20:=20myst?= =?UTF-8?q?=C3=A8re)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/scodoc/sco_saisie_notes.py | 6 +++++- sco_version.py | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/app/scodoc/sco_saisie_notes.py b/app/scodoc/sco_saisie_notes.py index 25d6f446..4729e461 100644 --- a/app/scodoc/sco_saisie_notes.py +++ b/app/scodoc/sco_saisie_notes.py @@ -583,8 +583,12 @@ def notes_add( existing_note = NotesNotes.query.filter_by( evaluation_id=evaluation_id, etudid=etudid ).first() + sco_cache.EvaluationCache.delete(evaluation_id) + notes_db = sco_evaluation_db.do_evaluation_get_all_notes( + evaluation_id + ) raise ScoBugCatcher( - f"dup: existing={existing_note} value={value}" + f"dup: existing={existing_note} etudid={repr(etudid)} value={value} in_db={etudid in notes_db}" ) from exc changed = True else: diff --git a/sco_version.py b/sco_version.py index 9f0f321e..5043b4d8 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.4.78" +SCOVERSION = "9.4.79" SCONAME = "ScoDoc"