removed print statement
This commit is contained in:
parent
f15863babc
commit
c454efaa70
2 changed files with 6 additions and 10 deletions
|
|
@ -11,7 +11,7 @@ def get_country_info(country=None):
|
|||
data = frappe._dict(data.get(country, {}))
|
||||
if not 'date_format' in data:
|
||||
data.date_format = "dd-mm-yyyy"
|
||||
|
||||
|
||||
return data
|
||||
|
||||
def get_all():
|
||||
|
|
@ -19,7 +19,7 @@ def get_all():
|
|||
all_data = json.loads(local_info.read())
|
||||
return all_data
|
||||
|
||||
@frappe.whitelist()
|
||||
@frappe.whitelist()
|
||||
def get_country_timezone_info():
|
||||
import pytz
|
||||
return {
|
||||
|
|
@ -30,15 +30,13 @@ def get_country_timezone_info():
|
|||
def update():
|
||||
with open(os.path.join(os.path.dirname(__file__), "currency_info.json"), "r") as nformats:
|
||||
nformats = json.loads(nformats.read())
|
||||
|
||||
|
||||
all_data = get_all()
|
||||
|
||||
|
||||
for country in all_data:
|
||||
data = all_data[country]
|
||||
data["number_format"] = nformats.get(data.get("currency", "default"),
|
||||
data["number_format"] = nformats.get(data.get("currency", "default"),
|
||||
nformats.get("default"))["display"]
|
||||
|
||||
print all_data
|
||||
|
||||
|
||||
with open(os.path.join(os.path.dirname(__file__), "country_info.json"), "w") as local_info:
|
||||
local_info.write(json.dumps(all_data, indent=1))
|
||||
|
|
|
|||
|
|
@ -12,8 +12,6 @@ def get_context(context):
|
|||
doc = frappe.get_doc("Style Settings", "Style Settings")
|
||||
prepare(doc)
|
||||
|
||||
print doc.page_header_color
|
||||
|
||||
return { "doc": doc }
|
||||
|
||||
def prepare(doc):
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue