From 06ebf61fceba31bd0f401e743dd7f8b3cca8aef7 Mon Sep 17 00:00:00 2001
From: crflynn
Date: Mon, 21 May 2018 08:55:54 -0400
Subject: [PATCH] chg retention to 60 days
---
pypistats/tasks/pypi.py | 2 +-
pypistats/templates/about.html | 2 +-
pypistats/templates/api.html | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/pypistats/tasks/pypi.py b/pypistats/tasks/pypi.py
index e5d2121..7899659 100644
--- a/pypistats/tasks/pypi.py
+++ b/pypistats/tasks/pypi.py
@@ -22,7 +22,7 @@ SYSTEMS = ("Windows", "Linux", "Darwin")
PSQL_TABLES = ["overall", "python_major", "python_minor", "system"]
# Number of days to retain records
-MAX_RECORD_AGE = 45
+MAX_RECORD_AGE = 60
def get_google_credentials():
diff --git a/pypistats/templates/about.html b/pypistats/templates/about.html
index 1909dc5..c065e62 100644
--- a/pypistats/templates/about.html
+++ b/pypistats/templates/about.html
@@ -10,7 +10,7 @@
download stats
on Google BigQuery. All aggregate download stats ignore known PyPI mirrors (such as
bandersnatch) unless noted otherwise.
- PyPI Stats attempts to operate within the free tier of its hosted services. For this reason, aggregate data is only retained for 30 days.
+ PyPI Stats attempts to operate within the free tier of its hosted services. For this reason, aggregate data is only retained for 60 days.
API
A simple
JSON API
diff --git a/pypistats/templates/api.html b/pypistats/templates/api.html
index e303dcd..40a355b 100644
--- a/pypistats/templates/api.html
+++ b/pypistats/templates/api.html
@@ -12,7 +12,7 @@
- All download stats exclude known mirrors (such as
bandersnatch) unless noted otherwise.
- - Time series data is retained only for 30 days.
+ - Time series data is retained only for 60 days.
- All download data is updated once daily.