forked from 0x2620/pandora
fix city stat
This commit is contained in:
parent
2644edb971
commit
c05bfae0a7
1 changed files with 2 additions and 2 deletions
|
@ -106,9 +106,9 @@ class Statistics(dict):
|
||||||
continent = country_data.get('continent','')
|
continent = country_data.get('continent','')
|
||||||
region = ', '.join([continent, country_data.get('region', '')])
|
region = ', '.join([continent, country_data.get('region', '')])
|
||||||
country = ', '.join([region, country])
|
country = ', '.join([region, country])
|
||||||
city = ', '.join(country, city) if city else ''
|
city = ', '.join([country, city]) if city else ''
|
||||||
|
|
||||||
self._increment(self[mode]['continent'], continent,)
|
self._increment(self[mode]['continent'], continent)
|
||||||
self._increment(self[mode]['region'], region)
|
self._increment(self[mode]['region'], region)
|
||||||
self._increment(self[mode]['country'], country)
|
self._increment(self[mode]['country'], country)
|
||||||
if city:
|
if city:
|
||||||
|
|
Loading…
Reference in a new issue