From: Giorgio Ravera Date: Tue, 26 May 2026 12:42:30 +0000 (+0200) Subject: Added devices in the list if no mac available X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=4b3226e7f888d5e39b16940476214418319d4fb7;p=network-manager.git Added devices in the list if no mac available --- 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():