1
0
forked from ScoDoc/ScoDoc
This commit is contained in:
Emmanuel Viennet 2021-09-28 07:28:16 +02:00
parent 11ef8857e2
commit f79003186a
5 changed files with 9 additions and 5 deletions

View File

@ -96,7 +96,7 @@ _formsemestreEditor = ndb.EditableTable(
def get_formsemestre(formsemestre_id):
"list ONE formsemestre"
if not isinstance(formsemestre_id, int):
raise ValueError()
raise ValueError("formsemestre_id must be an integer !")
try:
sem = do_formsemestre_list(args={"formsemestre_id": formsemestre_id})[0]
return sem

View File

@ -1395,7 +1395,7 @@ def graph_parcours(
if len(edges[(src_id, dst_id)]) <= MAX_ETUD_IN_DESCR:
etud_descr = _descr_etud_set(edges[(src_id, dst_id)])
bubbles[src_id + ":" + dst_id] = etud_descr
e.set_URL("__xxxetudlist__?" + src_id + ":" + dst_id)
e.set_URL(f"__xxxetudlist__?{src_id}:{dst_id}")
# Genere graphe
_, path = tempfile.mkstemp(".gr")
g.write(path=path, format=format)

View File

@ -27,6 +27,10 @@ h3 {
font-weight: bold;
}
div#gtrcontent {
margin-bottom: 4ex;
}
.scotext {
font-family : TimesNewRoman, "Times New Roman", Times, Baskerville, Georgia, serif;
}

View File

@ -1244,7 +1244,7 @@ def entreprise_edit(entreprise_id, start=1):
H.append("</ul>")
return "\n".join(H) + entreprise_footer()
elif tf[0] == -1:
return flask.redirect(scu.EntreprisesURL() + "?start=" + start)
return flask.redirect(scu.EntreprisesURL() + "?start=" + str(start))
else:
sco_entreprises.do_entreprise_edit(tf[2])
return flask.redirect(scu.EntreprisesURL() + "?start=" + start)
return flask.redirect(scu.EntreprisesURL() + "?start=" + str(start))

View File

@ -1,7 +1,7 @@
# -*- mode: python -*-
# -*- coding: utf-8 -*-
SCOVERSION = "9.0.41"
SCOVERSION = "9.0.42"
SCONAME = "ScoDoc"