1
0
forked from ScoDoc/ScoDoc

Fix: liens dans table liste absences

This commit is contained in:
Emmanuel Viennet 2021-09-24 00:11:56 +02:00
parent 73cf9a6f4d
commit beeca54a94

View File

@ -928,11 +928,11 @@ def _TablesAbsEtud(
cursor.execute( cursor.execute(
"""SELECT mi.moduleimpl_id """SELECT mi.moduleimpl_id
FROM absences abs, notes_moduleimpl_inscription mi, notes_moduleimpl m FROM absences abs, notes_moduleimpl_inscription mi, notes_moduleimpl m
WHERE abs.matin = %(matin)s WHERE abs.matin = %(matin)s
and abs.jour = %(jour)s and abs.jour = %(jour)s
and abs.etudid = %(etudid)s and abs.etudid = %(etudid)s
and abs.moduleimpl_id = mi.moduleimpl_id and abs.moduleimpl_id = mi.moduleimpl_id
and mi.moduleimpl_id = m.id and mi.moduleimpl_id = m.id
and mi.etudid = %(etudid)s and mi.etudid = %(etudid)s
""", """,
{ {
@ -959,8 +959,9 @@ def _TablesAbsEtud(
)[0] )[0]
if format == "html": if format == "html":
ex.append( ex.append(
'<a href="Notes/moduleimpl_status?moduleimpl_id=%s">%s</a>' f"""<a href="{url_for('notes.moduleimpl_status',
% (mod["moduleimpl_id"], mod["module"]["code"]) scodoc_dept=g.scodoc_dept, moduleimpl_id=mod["moduleimpl_id"])}
">{mod["module"]["code"]}</a>"""
) )
else: else:
ex.append(mod["module"]["code"]) ex.append(mod["module"]["code"])
@ -976,8 +977,9 @@ def _TablesAbsEtud(
)[0] )[0]
if format == "html": if format == "html":
ex.append( ex.append(
'<a href="Notes/moduleimpl_status?moduleimpl_id=%s">%s</a>' f"""<a href="{url_for('notes.moduleimpl_status',
% (mod["moduleimpl_id"], mod["module"]["code"]) scodoc_dept=g.scodoc_dept, moduleimpl_id=mod["moduleimpl_id"])}
">{mod["module"]["code"]}</a>"""
) )
else: else:
ex.append(mod["module"]["code"]) ex.append(mod["module"]["code"])