chore: off by one error in site age

This commit is contained in:
Ankush Menat 2023-08-14 10:24:40 +05:30
parent cd2f2df303
commit 8d5d371ba8
2 changed files with 2 additions and 2 deletions

View file

@ -54,7 +54,7 @@ class TelemetryManager {
}
register_pageview_handler() {
if (this.site_age && this.site_age > 5) {
if (this.site_age && this.site_age > 6) {
return;
}

View file

@ -30,7 +30,7 @@ def add_bootinfo(bootinfo):
def site_age():
try:
est_creation = frappe.db.get_value("User", "Administrator", "creation")
return (getdate() - getdate(est_creation)).days
return (getdate() - getdate(est_creation)).days + 1
except Exception:
pass