Commit 49099574 authored by Michal Čihař's avatar Michal Čihař

Do not include stats from today

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b7c4f8e5
......@@ -82,8 +82,8 @@ class ChangeManager(models.Manager):
'''
# Get range (actually start)
dtend = timezone.now().date()
dtstart = dtend - timezone.timedelta(days=days)
dtend = timezone.now().date() - timezone.timedelta(days=1)
dtstart = dtend - timezone.timedelta(days=days + 1)
# Base for filtering
base = self.all()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment