From 4e5e15092e32e711f6cff71c4cb313be15f5936b Mon Sep 17 00:00:00 2001 From: iziram Date: Tue, 25 Jul 2023 20:15:28 +0200 Subject: [PATCH] Assiduites : bugfix aucun dem def --- app/views/assiduites.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/assiduites.py b/app/views/assiduites.py index 628b49b8f..eb5896bce 100644 --- a/app/views/assiduites.py +++ b/app/views/assiduites.py @@ -934,6 +934,7 @@ def _get_etuds_dem_def(formsemestre): for etud in etuds_dem_def: json_str += template.replace("£", str(etud[0])).replace("$", etud[1]) - json_str = json_str[:-1] + "}" + if json_str != "{": + json_str = json_str[:-1] + "}" return json_str