fix: take country from doctype at signup
This commit is contained in:
@@ -249,7 +249,7 @@ def get_country_code():
|
|||||||
try:
|
try:
|
||||||
data = res.json()
|
data = res.json()
|
||||||
if data.get("status") != "fail":
|
if data.get("status") != "fail":
|
||||||
return data.get("country")
|
return frappe.db.get_value("Country", {"code": data.get("countryCode")}, "name")
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user