1
Fork 0
mirror of https://github.com/Steffo99/estus.git synced 2024-11-22 07:34:19 +00:00

🐟 Fixes

This commit is contained in:
Steffo 2017-09-14 15:12:08 +02:00
parent 3d54a2db88
commit cd1d730fc1

View file

@ -762,9 +762,9 @@ def page_pheesh():
pesci.append(Pesce(obj.nomeimpiegato, 1, 0.3, f"/imp_list")) pesci.append(Pesce(obj.nomeimpiegato, 1, 0.3, f"/imp_list"))
for obj in dispositivi: for obj in dispositivi:
random.seed(hash(obj.did)) random.seed(hash(obj.did))
if obj.marca is not None and obj.modello is not None: if obj.marca != "" and obj.modello != "":
pesci.append(Pesce(f"{obj.marca} {obj.modello}", 0.8, 0.2, f"/disp_details/{obj.did}")) pesci.append(Pesce(f"{obj.marca} {obj.modello}", 0.8, 0.2, f"/disp_details/{obj.did}"))
elif obj.seriale is not None: elif obj.seriale != "":
pesci.append(Pesce(f"Dispositivo {obj.seriale}", 0.8, 0.2, f"/disp_details/{obj.did}")) pesci.append(Pesce(f"Dispositivo {obj.seriale}", 0.8, 0.2, f"/disp_details/{obj.did}"))
else: else:
pesci.append(Pesce(f"Dispositivo {obj.did}", 0.8, 0.2, f"/disp_details/{obj.did}")) pesci.append(Pesce(f"Dispositivo {obj.did}", 0.8, 0.2, f"/disp_details/{obj.did}"))