mirror of
https://github.com/jayofelony/pwnagotchi.git
synced 2025-07-01 18:37:27 -04:00
Merge pull request #658 from sayak-brm/master
[BUGFIX] Prevent duplicate entries for reported networks
This commit is contained in:
@ -67,7 +67,8 @@ class Grid(plugins.Plugin):
|
||||
logging.info("grid plugin loaded.")
|
||||
|
||||
def set_reported(self, reported, net_id):
|
||||
reported.append(net_id)
|
||||
if net_id not in reported:
|
||||
reported.append(net_id)
|
||||
self.report.update(data={'reported': reported})
|
||||
|
||||
def check_inbox(self, agent):
|
||||
|
Reference in New Issue
Block a user