From 53ae043ffa60f044d7d86eeedbefb53b114efa58 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Sat, 22 Jan 2022 11:34:57 +0100 Subject: [PATCH] Fix: sanitize_old_formation --- app/models/formations.py | 4 ++-- sco_version.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/models/formations.py b/app/models/formations.py index e2273c3b6..b69d566a6 100644 --- a/app/models/formations.py +++ b/app/models/formations.py @@ -1,6 +1,7 @@ """ScoDoc 9 models : Formations """ +import app from app import db from app.comp import df_cache from app.models import SHORT_STR_LEN @@ -141,8 +142,7 @@ class Formation(db.Model): db.session.add(ue) db.session.commit() - if change: - self.invalidate_module_coefs() + app.clear_scodoc_cache() class Matiere(db.Model): diff --git a/sco_version.py b/sco_version.py index 3c171d1f5..55a2c7850 100644 --- a/sco_version.py +++ b/sco_version.py @@ -1,7 +1,7 @@ # -*- mode: python -*- # -*- coding: utf-8 -*- -SCOVERSION = "9.1.31" +SCOVERSION = "9.1.32" SCONAME = "ScoDoc"