(unknown) vendor update #889

This commit is contained in:
jokob-sk
2024-11-22 12:33:08 +11:00
parent ca87a56549
commit a9a4d397dc
3 changed files with 2 additions and 2 deletions

0
front/php/templates/language/es_es.json Normal file → Executable file
View File

0
front/php/templates/language/it_it.json Normal file → Executable file
View File

View File

@@ -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