[minor] Change Google Analytics preference

This commit is contained in:
Rushabh Mehta 2017-01-23 15:04:34 +05:30 committed by GitHub
parent 94c3af5815
commit fd506d3c12

View file

@ -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"))