mirror of
https://github.com/beestat/app.git
synced 2025-06-23 15:30:43 -04:00
Fixed visualizer not caching "7 Day Average" response
This commit is contained in:
parent
d91d6a9daf
commit
3a20c951c6
@ -176,8 +176,17 @@ beestat.component.card.three_d.prototype.decorate_contents_ = function(parent) {
|
|||||||
.subtract(
|
.subtract(
|
||||||
beestat.setting('visualize.range_dynamic'),
|
beestat.setting('visualize.range_dynamic'),
|
||||||
'day'
|
'day'
|
||||||
);
|
)
|
||||||
required_end = moment();
|
.hour(0)
|
||||||
|
.minute(0)
|
||||||
|
.second(0);
|
||||||
|
|
||||||
|
required_end = moment()
|
||||||
|
.subtract(1, 'day')
|
||||||
|
.clone()
|
||||||
|
.hour(23)
|
||||||
|
.minute(59)
|
||||||
|
.second(59);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
required_begin = moment(
|
required_begin = moment(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user