Fix: evaluation_create => cache invalidation

This commit is contained in:
Emmanuel Viennet 2022-02-14 16:07:15 +01:00
parent 84a25ae15b
commit 0196d411b4
2 changed files with 2 additions and 1 deletions

View File

@ -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

View File

@ -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})