forked from ScoDoc/ScoDoc
Fix: codes sems sur page accueil
This commit is contained in:
parent
5ac5f5eb19
commit
190304043d
@ -48,6 +48,7 @@ from app.scodoc import sco_users
|
||||
|
||||
def index_html(showcodes=0, showsemtable=0):
|
||||
"Page accueil département (liste des semestres)"
|
||||
showcodes = int(showcodes)
|
||||
showsemtable = int(showsemtable)
|
||||
H = []
|
||||
|
||||
@ -78,7 +79,7 @@ def index_html(showcodes=0, showsemtable=0):
|
||||
# Responsable de formation:
|
||||
sco_formsemestre.sem_set_responsable_name(sem)
|
||||
|
||||
if showcodes == "1":
|
||||
if showcodes:
|
||||
sem["tmpcode"] = "<td><tt>%s</tt></td>" % sem["formsemestre_id"]
|
||||
else:
|
||||
sem["tmpcode"] = ""
|
||||
@ -126,7 +127,7 @@ def index_html(showcodes=0, showsemtable=0):
|
||||
"""
|
||||
% sco_preferences.get_preference("DeptName")
|
||||
)
|
||||
H.append(_sem_table_gt(sems).html())
|
||||
H.append(_sem_table_gt(sems, showcodes=showcodes).html())
|
||||
H.append("</table>")
|
||||
if not showsemtable:
|
||||
H.append(
|
||||
|
Loading…
Reference in New Issue
Block a user