forked from ScoDoc/DocScoDoc
Suppression de (%(jour)s) lorsque l'évaluation n'a pas de date
This commit is contained in:
parent
baa5286dae
commit
540a956fae
@ -439,7 +439,10 @@ def _make_table_notes(
|
|||||||
hh = "%s, %s (%d étudiants)" % (E["description"], gr_title, len(etudids))
|
hh = "%s, %s (%d étudiants)" % (E["description"], gr_title, len(etudids))
|
||||||
filename = scu.make_filename("notes_%s_%s" % (evalname, gr_title_filename))
|
filename = scu.make_filename("notes_%s_%s" % (evalname, gr_title_filename))
|
||||||
caption = hh
|
caption = hh
|
||||||
|
if len(e["jour"]) > 0:
|
||||||
pdf_title = "%(description)s (%(jour)s)" % e
|
pdf_title = "%(description)s (%(jour)s)" % e
|
||||||
|
else:
|
||||||
|
pdf_title = "%(description)s " % e
|
||||||
html_title = ""
|
html_title = ""
|
||||||
base_url = "evaluation_listenotes?evaluation_id=%s" % E["evaluation_id"] + gl
|
base_url = "evaluation_listenotes?evaluation_id=%s" % E["evaluation_id"] + gl
|
||||||
html_next_section = (
|
html_next_section = (
|
||||||
@ -626,7 +629,10 @@ def _add_eval_columns(
|
|||||||
else:
|
else:
|
||||||
moys[evaluation_id] = ""
|
moys[evaluation_id] = ""
|
||||||
|
|
||||||
|
if len(e["jour"]) > 0:
|
||||||
titles[evaluation_id] = "%(description)s (%(jour)s)" % e
|
titles[evaluation_id] = "%(description)s (%(jour)s)" % e
|
||||||
|
else:
|
||||||
|
titles[evaluation_id] = "%(description)s " % e
|
||||||
|
|
||||||
if e["eval_state"]["evalcomplete"]:
|
if e["eval_state"]["evalcomplete"]:
|
||||||
titles["_" + str(evaluation_id) + "_td_attrs"] = 'class="eval_complete"'
|
titles["_" + str(evaluation_id) + "_td_attrs"] = 'class="eval_complete"'
|
||||||
|
Loading…
Reference in New Issue
Block a user