From a9a4d397dc2e5928e40e12755615858b1ebc18d0 Mon Sep 17 00:00:00 2001 From: jokob-sk Date: Fri, 22 Nov 2024 12:33:08 +1100 Subject: [PATCH] (unknown) vendor update #889 --- front/php/templates/language/es_es.json | 0 front/php/templates/language/it_it.json | 0 server/device.py | 4 ++-- 3 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 front/php/templates/language/es_es.json mode change 100644 => 100755 front/php/templates/language/it_it.json diff --git a/front/php/templates/language/es_es.json b/front/php/templates/language/es_es.json old mode 100644 new mode 100755 diff --git a/front/php/templates/language/it_it.json b/front/php/templates/language/it_it.json old mode 100644 new mode 100755 diff --git a/server/device.py b/server/device.py index 053ac3699..6e5ef7d33 100755 --- a/server/device.py +++ b/server/device.py @@ -317,7 +317,7 @@ def update_devices_data_from_scan (db): WHERE EXISTS (SELECT 1 FROM CurrentScan WHERE devMac = cur_MAC) """) - # Update only devices with empty or NULL vendors + # Update only devices with empty, NULL or (u(U)nknown) vendors mylog('debug', '[Update Devices] - cur_Vendor -> (if empty) devVendor') sql.execute("""UPDATE Devices SET devVendor = ( @@ -326,7 +326,7 @@ def update_devices_data_from_scan (db): WHERE Devices.devMac = CurrentScan.cur_MAC ) WHERE - (devVendor IS NULL OR devVendor IN ("", "null")) + (devVendor IS NULL OR devVendor IN ("", "null", "(unknown)", "(Unknown)")) AND EXISTS ( SELECT 1 FROM CurrentScan