misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
Simone Margaritelli 2019-10-13 18:35:09 +02:00
parent b539a76124
commit 2430b4a134
No known key found for this signature in database
GPG Key ID: 82E42E7F3B34C97E

View File

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