Merge pull request #658 from sayak-brm/master
[BUGFIX] Prevent duplicate entries for reported networks
This commit is contained in:
commit
48e3a372cc
@ -67,7 +67,8 @@ class Grid(plugins.Plugin):
|
|||||||
logging.info("grid plugin loaded.")
|
logging.info("grid plugin loaded.")
|
||||||
|
|
||||||
def set_reported(self, reported, net_id):
|
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})
|
self.report.update(data={'reported': reported})
|
||||||
|
|
||||||
def check_inbox(self, agent):
|
def check_inbox(self, agent):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user