Change future entries in heat map to be empty

This commit is contained in:
Joseph Schorr 2016-06-23 17:08:11 -04:00
parent 8232a14518
commit 38744c81c5
3 changed files with 13 additions and 1 deletions

View file

@ -284,7 +284,7 @@ class Repository(RepositoryParamResource):
found_dates['%s/%s' % (count.date.month, count.date.day)] = True
# Fill in any missing stats with zeros.
for day in range(-31, MAX_DAYS_IN_3_MONTHS):
for day in range(1, MAX_DAYS_IN_3_MONTHS):
day_date = datetime.now() - timedelta(days=day)
key = '%s/%s' % (day_date.month, day_date.day)
if not key in found_dates: