chore: change telemetry code order
This commit is contained in:
parent
2111f3fa02
commit
8a81ac265e
1 changed files with 3 additions and 2 deletions
|
|
@ -16,13 +16,14 @@ POSTHOG_HOST_FIELD = "posthog_host"
|
|||
|
||||
|
||||
def add_bootinfo(bootinfo):
|
||||
bootinfo.telemetry_site_age = site_age()
|
||||
|
||||
if not frappe.get_system_settings("enable_telemetry"):
|
||||
return
|
||||
|
||||
bootinfo.enable_telemetry = True
|
||||
bootinfo.posthog_host = frappe.conf.get(POSTHOG_HOST_FIELD)
|
||||
bootinfo.posthog_project_id = frappe.conf.get(POSTHOG_PROJECT_FIELD)
|
||||
bootinfo.enable_telemetry = True
|
||||
bootinfo.telemetry_site_age = site_age()
|
||||
|
||||
|
||||
@site_cache(ttl=60 * 60 * 12)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue