chore: off by one error in site age
This commit is contained in:
parent
cd2f2df303
commit
8d5d371ba8
2 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue