From 4996c5a55380c019250cd71af0f11cd9121cc618 Mon Sep 17 00:00:00 2001 From: Gregory Danielson Date: Sun, 1 Nov 2020 13:42:31 -0600 Subject: [PATCH] Pass region through workaround for consistency --- lib/location.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/location.py b/lib/location.py index 638a466..788da5e 100644 --- a/lib/location.py +++ b/lib/location.py @@ -174,7 +174,7 @@ def geoip(ip_addr): city = None return city, region, country -def workaround(city, country): +def workaround(city, region, country): # workaround for the strange bug with the country name # maybe some other countries has this problem too # @@ -182,7 +182,7 @@ def workaround(city, country): # be a problem if country == 'Russian Federation': country = 'Russia' - return city, country + return city, region, country def get_location(ip_addr): """