mirror of https://gitlab.crans.org/bde/nk20
delete print
This commit is contained in:
parent
73ff35c232
commit
f50849b4f8
|
@ -81,30 +81,13 @@ buses_descr = [
|
|||
]
|
||||
|
||||
|
||||
def print_survey_info(i):
|
||||
s = {"recap": {
|
||||
"1": 0,
|
||||
}}
|
||||
s_ = {f"bus{i}": {f"{i}": 0 for i in range(1, 5 + 1)} for i in range(len(buses_descr))}
|
||||
s.update(s_)
|
||||
s.update({f"bus{i}": {f"{join}": join for join in range(1, 5 + 1)}})
|
||||
s = {"scores": s}
|
||||
json_str = json.dumps(s)
|
||||
print(json_str)
|
||||
|
||||
|
||||
|
||||
|
||||
def print_bus(i):
|
||||
return f"""<h1 style="color:{buses_descr[i][1]};-webkit-text-stroke: 2px black;font-size: 50px;">{buses_descr[i][0]}</h1><br>
|
||||
<b>Alcoolomètre : {buses_descr[i][2]} / 5 🍻</b><br><br>{buses_descr[i][3]}<br>"""
|
||||
|
||||
|
||||
|
||||
|
||||
def print_all_buses():
|
||||
# for i in range(len(buses_descr)):
|
||||
# print_survey_info(i)
|
||||
liste = [print_bus(i) for i in range(len(buses_descr))]
|
||||
return "<br><br><br><br>".join(liste)
|
||||
|
||||
|
|
Loading…
Reference in New Issue