Merge pull request from sayak-brm/master

[BUGFIX] Prevent duplicate entries for reported networks
This commit is contained in:
evilsocket 2019-11-26 12:04:00 +01:00 committed by GitHub
commit 48e3a372cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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):