Procházet zdrojové kódy

[minor] Change Google Analytics preference

version-14
Rushabh Mehta před 8 roky
committed by GitHub
rodič
revize
fd506d3c12
1 změnil soubory, kde provedl 2 přidání a 3 odebrání
  1. +2
    -3
      frappe/www/website_script.py

+ 2
- 3
frappe/www/website_script.py Zobrazit soubor

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

Načítá se…
Zrušit
Uložit