Fix: sanitize_old_formation

This commit is contained in:
Emmanuel Viennet 2022-01-22 11:34:57 +01:00
parent 7c89b9a8d3
commit 53ae043ffa
2 changed files with 3 additions and 3 deletions

View File

@ -1,6 +1,7 @@
"""ScoDoc 9 models : Formations """ScoDoc 9 models : Formations
""" """
import app
from app import db from app import db
from app.comp import df_cache from app.comp import df_cache
from app.models import SHORT_STR_LEN from app.models import SHORT_STR_LEN
@ -141,8 +142,7 @@ class Formation(db.Model):
db.session.add(ue) db.session.add(ue)
db.session.commit() db.session.commit()
if change: app.clear_scodoc_cache()
self.invalidate_module_coefs()
class Matiere(db.Model): class Matiere(db.Model):

View File

@ -1,7 +1,7 @@
# -*- mode: python -*- # -*- mode: python -*-
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
SCOVERSION = "9.1.31" SCOVERSION = "9.1.32"
SCONAME = "ScoDoc" SCONAME = "ScoDoc"