diff --git a/app/scodoc/sco_liste_notes.py b/app/scodoc/sco_liste_notes.py index c0524be9e..ebe75a1d8 100644 --- a/app/scodoc/sco_liste_notes.py +++ b/app/scodoc/sco_liste_notes.py @@ -481,7 +481,10 @@ def _make_table_notes( hh = "%s, %s (%d étudiants)" % (E["description"], gr_title, len(etudid_etats)) filename = scu.make_filename("notes_%s_%s" % (evalname, gr_title_filename)) caption = hh - pdf_title = "%(description)s (%(jour)s)" % e + if len(e["jour"]) > 0: + pdf_title = "%(description)s (%(jour)s)" % e + else: + pdf_title = "%(description)s " % e html_title = "" base_url = "evaluation_listenotes?evaluation_id=%s" % E["evaluation_id"] + gl html_next_section = ( @@ -685,7 +688,10 @@ def _add_eval_columns( else: row_moys[evaluation_id] = "" - titles[evaluation_id] = "%(description)s (%(jour)s)" % e + if len(e["jour"]) > 0: + titles[evaluation_id] = "%(description)s (%(jour)s)" % e + else: + titles[evaluation_id] = "%(description)s " % e if e["eval_state"]["evalcomplete"]: titles["_" + str(evaluation_id) + "_td_attrs"] = 'class="eval_complete"' diff --git a/tools/etc/scodoc-updater.timer b/tools/etc/scodoc-updater.timer index 3a7cddff6..4ba66d784 100644 --- a/tools/etc/scodoc-updater.timer +++ b/tools/etc/scodoc-updater.timer @@ -7,12 +7,12 @@ # [Unit] -Description=Upgrade ScoDoc and Linux each week on Saturday night (sunday, 2:30 am) +Description=Upgrade ScoDoc and Linux each night (2:30 am + random delay) [Timer] -OnCalendar=Sun *-*-* 02:30:00 +OnCalendar=*-*-* 02:30:00 # Add random delay, to avoid overloading ScoDoc upgrade server -RandomizedDelaySec=30min +RandomizedDelaySec=40min [Install] WantedBy=timers.target