mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-04-13 13:41:37 -07:00
(unknown) vendor update #889
This commit is contained in:
0
front/php/templates/language/es_es.json
Normal file → Executable file
0
front/php/templates/language/es_es.json
Normal file → Executable file
0
front/php/templates/language/it_it.json
Normal file → Executable file
0
front/php/templates/language/it_it.json
Normal file → Executable file
@@ -317,7 +317,7 @@ def update_devices_data_from_scan (db):
|
|||||||
WHERE EXISTS (SELECT 1 FROM CurrentScan
|
WHERE EXISTS (SELECT 1 FROM CurrentScan
|
||||||
WHERE devMac = cur_MAC) """)
|
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')
|
mylog('debug', '[Update Devices] - cur_Vendor -> (if empty) devVendor')
|
||||||
sql.execute("""UPDATE Devices
|
sql.execute("""UPDATE Devices
|
||||||
SET devVendor = (
|
SET devVendor = (
|
||||||
@@ -326,7 +326,7 @@ def update_devices_data_from_scan (db):
|
|||||||
WHERE Devices.devMac = CurrentScan.cur_MAC
|
WHERE Devices.devMac = CurrentScan.cur_MAC
|
||||||
)
|
)
|
||||||
WHERE
|
WHERE
|
||||||
(devVendor IS NULL OR devVendor IN ("", "null"))
|
(devVendor IS NULL OR devVendor IN ("", "null", "(unknown)", "(Unknown)"))
|
||||||
AND EXISTS (
|
AND EXISTS (
|
||||||
SELECT 1
|
SELECT 1
|
||||||
FROM CurrentScan
|
FROM CurrentScan
|
||||||
|
|||||||
Reference in New Issue
Block a user