1
0
mirror of https://github.com/beestat/app.git synced 2025-05-24 02:14:03 -04:00

Fixed #240 - Add "yesterday" as an option to data downloads.

This commit is contained in:
Jon Ziebell 2020-02-13 18:09:56 -05:00
parent 786b958086
commit bd6e03dd41

View File

@ -135,6 +135,12 @@ beestat.component.modal.download_data.prototype.decorate_presets_ = function(par
'range_end': now.clone(),
'button': new beestat.component.button()
},
{
'label': 'Yesterday',
'range_begin': now.clone().subtract(1, 'day'),
'range_end': now.clone().subtract(1, 'day'),
'button': new beestat.component.button()
},
{
'label': 'This Week',
'range_begin': now.clone().startOf('week'),