Skip to content

Commit f636c45

Browse files
authored
Fetching the download data in report from the month before last (#635)
1 parent f642043 commit f636c45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/package_report.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,8 @@ def _generate_staleness_report_per_image(
7070
staleness_report_rows = []
7171

7272
# Get conda download statistics for all installed packages
73-
# Use previous month to get full month of data
74-
previous_month = (datetime.now() - relativedelta(months=1)).strftime("%Y-%m")
73+
# Use the month before last to get full month of data
74+
previous_month = (datetime.now() - relativedelta(months=2)).strftime("%Y-%m")
7575
pkg_list = list(package_versions_in_upstream.keys())
7676
# Suppress FutureWarning from pandas so it doesn't show in report
7777
with warnings.catch_warnings():

0 commit comments

Comments
 (0)