work on #353, update vendors bug #357

This commit is contained in:
Jokob-sk
2023-08-15 07:40:51 +10:00
parent 5efc4975c6
commit 23da070784
4 changed files with 7 additions and 8 deletions

View File

@@ -157,8 +157,8 @@ def main ():
check_internet_IP(db)
# Update vendors once a week
if last_update_vendors + datetime.timedelta(days = 7) < loop_start_time:
last_update_vendors = loop_start_time
if conf.last_update_vendors + datetime.timedelta(days = 7) < loop_start_time:
conf.last_update_vendors = loop_start_time
conf.cycle = 'update_vendors'
mylog('verbose', ['[MAIN] cycle:',conf.cycle])
update_devices_MAC_vendors(db)