From 0196d411b47e10e7e6d5dcb181c61c8b8aa0a2d1 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Mon, 14 Feb 2022 16:07:15 +0100 Subject: [PATCH] Fix: evaluation_create => cache invalidation --- app/scodoc/sco_evaluation_db.py | 1 + app/scodoc/sco_preferences.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/scodoc/sco_evaluation_db.py b/app/scodoc/sco_evaluation_db.py index 23bc45790..59dbc5fe8 100644 --- a/app/scodoc/sco_evaluation_db.py +++ b/app/scodoc/sco_evaluation_db.py @@ -175,6 +175,7 @@ def do_evaluation_create( # news M = sco_moduleimpl.moduleimpl_list(moduleimpl_id=moduleimpl_id)[0] + sco_cache.invalidate_formsemestre(formsemestre_id=M["formsemestre_id"]) mod = sco_edit_module.module_list(args={"module_id": M["module_id"]})[0] mod["moduleimpl_id"] = M["moduleimpl_id"] mod["url"] = "Notes/moduleimpl_status?moduleimpl_id=%(moduleimpl_id)s" % mod diff --git a/app/scodoc/sco_preferences.py b/app/scodoc/sco_preferences.py index 6667db96a..b639d5ee4 100644 --- a/app/scodoc/sco_preferences.py +++ b/app/scodoc/sco_preferences.py @@ -1859,7 +1859,7 @@ class BasePreferences(object): def load(self): """Load all preferences from db""" - log(f"loading preferences for dept_id={self.dept_id}") + # log(f"loading preferences for dept_id={self.dept_id}") cnx = ndb.GetDBConnexion() preflist = self._editor.list(cnx, {"dept_id": self.dept_id})