From bd8f2936c58efdba421f0867f01c599bb947064e Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Tue, 8 Oct 2019 18:52:36 +0200 Subject: [PATCH] fix: grid plugin was not enrolling partially opted-in units --- pwnagotchi/plugins/default/grid.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwnagotchi/plugins/default/grid.py b/pwnagotchi/plugins/default/grid.py index 368ebcd..066b794 100644 --- a/pwnagotchi/plugins/default/grid.py +++ b/pwnagotchi/plugins/default/grid.py @@ -135,10 +135,10 @@ def on_internet_available(agent): num_reported = len(reported) num_new = num_networks - num_reported + token = get_api_token(agent.last_session, agent.keypair()) if num_new > 0: if OPTIONS['report']: logging.info("grid: %d new networks to report" % num_new) - token = get_api_token(agent.last_session, agent.keypair()) for pcap_file in pcap_files: net_id = os.path.basename(pcap_file).replace('.pcap', '')