From fd9cde1ec6f5ef2fe88a1fc521d7ba3d0e4292a7 Mon Sep 17 00:00:00 2001 From: Howl Date: Mon, 5 Sep 2016 00:50:29 +0200 Subject: [PATCH] remove (dead) getShowCountry code --- helpers/userHelper.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/helpers/userHelper.py b/helpers/userHelper.py index 4b5f5f7..af5602b 100644 --- a/helpers/userHelper.py +++ b/helpers/userHelper.py @@ -251,18 +251,6 @@ def setCountry(userID, country): """ glob.db.execute("UPDATE users_stats SET country = %s WHERE id = %s LIMIT 1", [country, userID]) -def getShowCountry(userID): - """ - Get userID's show country status - - userID -- userID - return -- True if country is shown, False if it's hidden - """ - country = glob.db.fetch("SELECT show_country FROM users_stats WHERE id = %s LIMIT 1", [userID]) - if country is None: - return False - return generalFunctions.stringToBool(country) - def logIP(userID, ip): """ User IP log