1
0
forked from ScoDoc/ScoDoc

Fix: operator priority

This commit is contained in:
Emmanuel Viennet 2021-12-13 10:20:16 +01:00
parent 28f266fac6
commit 2244f29c33
3 changed files with 4 additions and 4 deletions

View File

@ -256,8 +256,8 @@ def apo_table_compare_etud_results(A, B):
"prenom": "Prénom",
"elt_code": "Element",
"type_res": "Type",
"val_A": "A: %s" % A.orig_filename or "",
"val_B": "B: %s" % B.orig_filename or "",
"val_A": "A: %s" % (A.orig_filename or ""),
"val_B": "B: %s" % (B.orig_filename or ""),
},
columns_ids=("nip", "nom", "prenom", "elt_code", "type_res", "val_A", "val_B"),
html_class="table_leftalign",

View File

@ -1116,7 +1116,7 @@ def formsemestre_tableau_modules(
prev_ue_id = None
for modimpl in modimpls:
mod = Module.query.get(modimpl["module_id"])
mod_descr = "Module " + mod.titre or ""
mod_descr = "Module " + (mod.titre or "")
if mod.is_apc():
coef_descr = ", ".join(
[f"{ue_acro}: {co}" for ue_acro, co in mod.ue_coefs_descr()]

View File

@ -128,7 +128,7 @@ class MyHttpRequestHandler(http.server.SimpleHTTPRequestHandler):
)
self.send_response(404)
return
elif "getPhoto" in self.path or "scodocPhoto" in self.path:
elif ("getPhoto" in self.path) or ("scodocPhoto" in self.path):
nip = query_components["nip"][0]
self.path = str(get_photo_filename(nip))
print(f"photo for nip={nip}: {self.path}")