From 9b3df5febf5846955436c8a51a76dc7bbf6b41a5 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Tue, 4 Jul 2023 23:31:44 +0200 Subject: [PATCH] Fix: creation semestre --- app/scodoc/sco_formsemestre_edit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/scodoc/sco_formsemestre_edit.py b/app/scodoc/sco_formsemestre_edit.py index 67410b5c..317e4936 100644 --- a/app/scodoc/sco_formsemestre_edit.py +++ b/app/scodoc/sco_formsemestre_edit.py @@ -797,7 +797,7 @@ def do_formsemestre_createwithmodules(edit=False, formsemestre: FormSemestre = N url_for( "notes.formsemestre_status", scodoc_dept=g.scodoc_dept, - formsemestre_id=formsemestre.id, + formsemestre_id=formsemestre.id if formsemestre else formsemestre_id, ) ) else: