Merge pull request #299 from pateljannat/jobs-redesign

This commit is contained in:
Jannat Patel
2022-02-14 16:22:58 +05:30
committed by GitHub
10 changed files with 181 additions and 107 deletions

View File

@@ -225,8 +225,8 @@ def set_country_from_ip(login_manager=None, user=None):
user = login_manager.user
user_country = frappe.db.get_value("User", user, "country")
if user_country:
return
#if user_country:
# return
frappe.db.set_value("User", user, "country", get_country_code())
return