Merge branch 'master' of https://scodoc.org/git/viennet/ScoDoc into PNBUT

This commit is contained in:
Emmanuel Viennet 2021-12-04 21:31:56 +01:00
commit d79f376b24
2 changed files with 11 additions and 5 deletions

View File

@ -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
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] = ""
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"'

View File

@ -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