Skip to content

Commit

Permalink
(unknown) vendor update #889
Browse files Browse the repository at this point in the history
  • Loading branch information
jokob-sk committed Nov 22, 2024
1 parent ca87a56 commit a9a4d39
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Empty file modified front/php/templates/language/es_es.json
100644 → 100755
Empty file.
Empty file modified front/php/templates/language/it_it.json
100644 → 100755
Empty file.
4 changes: 2 additions & 2 deletions server/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
Expand All @@ -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
Expand Down

0 comments on commit a9a4d39

Please sign in to comment.