From c05bfae0a709dc5b8dcee569780f2a162214be76 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Tue, 22 Oct 2013 17:57:14 +0000 Subject: [PATCH] fix city stat --- pandora/user/statistics.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora/user/statistics.py b/pandora/user/statistics.py index 3e4620a27..98cb27f6a 100644 --- a/pandora/user/statistics.py +++ b/pandora/user/statistics.py @@ -106,9 +106,9 @@ class Statistics(dict): continent = country_data.get('continent','') region = ', '.join([continent, country_data.get('region', '')]) 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]['country'], country) if city: