diff --git a/app/scodoc/sco_abs_views.py b/app/scodoc/sco_abs_views.py
index f75e0b6bda..6408abd14d 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"])