From 4b3226e7f888d5e39b16940476214418319d4fb7 Mon Sep 17 00:00:00 2001 From: Giorgio Ravera Date: Tue, 26 May 2026 14:42:30 +0200 Subject: [PATCH] Added devices in the list if no mac available --- backend/db/hosts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/db/hosts.py b/backend/db/hosts.py index bb07eab..6c64015 100644 --- a/backend/db/hosts.py +++ b/backend/db/hosts.py @@ -92,7 +92,7 @@ def get_hosts(filter_devices: bool = False) -> List[Dict[str, Any]]: if (filter_devices != True): cur = conn.execute("SELECT * FROM hosts") else: - cur = conn.execute("SELECT id, ipv4, mac, name, description FROM hosts WHERE ipv4 IS NOT NULL AND mac IS NOT NULL") + cur = conn.execute("SELECT id, ipv4, mac, name, description FROM hosts WHERE ipv4 IS NOT NULL") rows = [] for r in cur.fetchall(): -- 2.47.3