delete print

This commit is contained in:
mcngnt 2024-08-29 14:01:55 +02:00
parent 73ff35c232
commit f50849b4f8
1 changed files with 0 additions and 17 deletions

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)