Replace yesterday date range with last 3 days

This commit is contained in:
Paweł Jastrzębski 2021-05-05 14:56:17 +02:00
parent 8b167b2c74
commit a1a083a403

View File

@ -26,9 +26,9 @@ class DateRangeMixin:
now = timezone.now()
return [
{
'name': 'Yesterday',
'start': now - timezone.timedelta(days=1),
'end': now - timezone.timedelta(days=1),
'name': 'Last 3 days',
'start': now - timezone.timedelta(days=2),
'end': now,
},
{
'name': 'Last 30 days',