1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2024-12-22 23:42:25 +00:00

delete print

This commit is contained in:
mcngnt 2024-08-29 14:01:55 +02:00
parent 73ff35c232
commit f50849b4f8

View File

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