From cd1d730fc1d1ef56c283ae2250314cec7bcfa286 Mon Sep 17 00:00:00 2001 From: Stefano Date: Thu, 14 Sep 2017 15:12:08 +0200 Subject: [PATCH] :fish: Fixes --- server.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server.py b/server.py index 941ffd0..cfe2325 100644 --- a/server.py +++ b/server.py @@ -762,9 +762,9 @@ def page_pheesh(): pesci.append(Pesce(obj.nomeimpiegato, 1, 0.3, f"/imp_list")) for obj in dispositivi: 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}")) - 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}")) else: pesci.append(Pesce(f"Dispositivo {obj.did}", 0.8, 0.2, f"/disp_details/{obj.did}"))