iwla

iwla Commit Details

Date:2017-08-23 20:10:15 (3 years 11 months ago)
Author:Grégory Soutadé
Branch:dev, master
Commit:3b3ae1ea3e53b16f8452b199f0cabe32cbdbe2be
Parents: 83227cfad27ea36437666e830a6edc0fc4ba7900
Message:Fix KeyError : geo attribute can not exists

Changes:
Mplugins/display/ip_to_geo.py (1 diff)

File differences

plugins/display/ip_to_geo.py
8282
8383
8484
85
85
8686
8787
8888
def hook(self):
display = self.iwla.getDisplay()
geo = self.iwla.getMonthStats()['geo']
geo = self.iwla.getMonthStats().get('geo', {})
geo = sorted(geo.items(), key=lambda t: t[1], reverse=True)
self.valid_visitors = self.iwla.getValidVisitors()

Archive Download the corresponding diff file

Branches

Tags