Verified Commit 826001ad authored by Martin Petráček's avatar Martin Petráček
Browse files

fix notify_new_devices option - was ignored till now

parent b09b9845
......@@ -269,7 +269,7 @@ def main():
logging.debug('Error cleaning flow_id')
notify_new_devices = uci_get('pakon.monitor.notify_new_devices')
notify_new_devices = int(uci_get('pakon.monitor.notify_new_devices'))
if notify_new_devices:
c.execute('ATTACH ? AS archive', (archive_path,))
for row in c.execute('SELECT DISTINCT(src_mac) FROM traffic UNION SELECT DISTINCT(src_mac) FROM archive.traffic'):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment