diff --git a/js/component/modal/download_data.js b/js/component/modal/download_data.js index d2f17db..13e38b5 100644 --- a/js/component/modal/download_data.js +++ b/js/component/modal/download_data.js @@ -147,12 +147,32 @@ beestat.component.modal.download_data.prototype.decorate_presets_ = function(par 'range_end': now.clone(), 'button': new beestat.component.button() }, + { + 'label': 'Last Week', + 'range_begin': now.clone() + .subtract(1, 'week') + .startOf('week'), + 'range_end': now.clone() + .subtract(1, 'week') + .endOf('week'), + 'button': new beestat.component.button() + }, { 'label': 'This Month', 'range_begin': now.clone().startOf('month'), 'range_end': now.clone(), 'button': new beestat.component.button() }, + { + 'label': 'Last Month', + 'range_begin': now.clone() + .subtract(1, 'month') + .startOf('month'), + 'range_end': now.clone() + .subtract(1, 'month') + .endOf('month'), + 'button': new beestat.component.button() + }, { 'label': 'All Time', 'range_begin': moment.max(moment(thermostat.first_connected), now.clone().subtract(1, 'year')),