.BANCHO. .FIX. Temporary fix for bancho country and location
This commit is contained in:
parent
97d81696b1
commit
f0c984ad47
|
@ -125,11 +125,12 @@ def handle(flaskRequest):
|
||||||
# Get location and country from ip.zxq.co or database
|
# Get location and country from ip.zxq.co or database
|
||||||
if generalFunctions.stringToBool(glob.conf.config["server"]["localizeusers"]):
|
if generalFunctions.stringToBool(glob.conf.config["server"]["localizeusers"]):
|
||||||
# Make sure this user has not disabled his country flag
|
# Make sure this user has not disabled his country flag
|
||||||
if userHelper.getShowCountry(userID) == False:
|
#if userHelper.getShowCountry(userID) == False:
|
||||||
location = [0,0]
|
# location = [0,0]
|
||||||
countryLetters = "XX"
|
# countryLetters = "XX"
|
||||||
country = 0
|
# country = 0
|
||||||
else:
|
#else:
|
||||||
|
|
||||||
# Get location and country from IP
|
# Get location and country from IP
|
||||||
location = locationHelper.getLocation(requestIP)
|
location = locationHelper.getLocation(requestIP)
|
||||||
countryLetters = locationHelper.getCountry(requestIP)
|
countryLetters = locationHelper.getCountry(requestIP)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user