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

@ -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"])