[minor] Change Google Analytics preference
This commit is contained in:
parent
94c3af5815
commit
fd506d3c12
1 changed files with 2 additions and 3 deletions
|
|
@ -18,6 +18,5 @@ def get_context(context):
|
|||
context.javascript += "\n" + js
|
||||
|
||||
if not frappe.conf.developer_mode:
|
||||
context["google_analytics_id"] = frappe.conf.get("google_analytics_id") \
|
||||
or frappe.db.get_single_value("Website Settings", "google_analytics_id")
|
||||
|
||||
context["google_analytics_id"] = (frappe.db.get_single_value("Website Settings", "google_analytics_id")
|
||||
or frappe.conf.get("google_analytics_id"))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue