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 053ac369..6e5ef7d3 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