From beeca54a947a65206651bc1710f365df2ce71f96 Mon Sep 17 00:00:00 2001 From: Emmanuel Viennet Date: Fri, 24 Sep 2021 00:11:56 +0200 Subject: [PATCH] Fix: liens dans table liste absences --- app/scodoc/sco_abs_views.py | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/app/scodoc/sco_abs_views.py b/app/scodoc/sco_abs_views.py index f75e0b6bd..6408abd14 100644 --- a/app/scodoc/sco_abs_views.py +++ b/app/scodoc/sco_abs_views.py @@ -928,11 +928,11 @@ def _TablesAbsEtud( cursor.execute( """SELECT mi.moduleimpl_id FROM absences abs, notes_moduleimpl_inscription mi, notes_moduleimpl m - WHERE abs.matin = %(matin)s - and abs.jour = %(jour)s - and abs.etudid = %(etudid)s - and abs.moduleimpl_id = mi.moduleimpl_id - and mi.moduleimpl_id = m.id + WHERE abs.matin = %(matin)s + and abs.jour = %(jour)s + and abs.etudid = %(etudid)s + and abs.moduleimpl_id = mi.moduleimpl_id + and mi.moduleimpl_id = m.id and mi.etudid = %(etudid)s """, { @@ -959,8 +959,9 @@ def _TablesAbsEtud( )[0] if format == "html": ex.append( - '%s' - % (mod["moduleimpl_id"], mod["module"]["code"]) + f"""{mod["module"]["code"]}""" ) else: ex.append(mod["module"]["code"]) @@ -976,8 +977,9 @@ def _TablesAbsEtud( )[0] if format == "html": ex.append( - '%s' - % (mod["moduleimpl_id"], mod["module"]["code"]) + f"""{mod["module"]["code"]}""" ) else: ex.append(mod["module"]["code"])