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

Fixed visualizer not caching "7 Day Average" response

This commit is contained in:
Jon Ziebell 2022-09-13 22:30:33 -04:00
parent d91d6a9daf
commit 3a20c951c6

View File

@ -176,8 +176,17 @@ beestat.component.card.three_d.prototype.decorate_contents_ = function(parent) {
.subtract(
beestat.setting('visualize.range_dynamic'),
'day'
);
required_end = moment();
)
.hour(0)
.minute(0)
.second(0);
required_end = moment()
.subtract(1, 'day')
.clone()
.hour(23)
.minute(59)
.second(59);
}
} else {
required_begin = moment(