From 2430b4a13406e10e803eeb59f171b2544e420f9c Mon Sep 17 00:00:00 2001 From: Simone Margaritelli Date: Sun, 13 Oct 2019 18:35:09 +0200 Subject: [PATCH] misc: small fix or general refactoring i did not bother commenting --- pwnagotchi/log.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pwnagotchi/log.py b/pwnagotchi/log.py index 560a6ce..c81a17c 100644 --- a/pwnagotchi/log.py +++ b/pwnagotchi/log.py @@ -134,7 +134,10 @@ class LastSession(object): 'channel': 1, 'rssi': int(rssi), 'identity': pubkey, - 'advertisement':{'pwnd_tot': int(pwnd_tot)}}) + 'advertisement':{ + 'name': name, + 'pwnd_tot': int(pwnd_tot) + }}) self.peers += 1 cache[pubkey] = self.last_peer else: