Commit 97d6cb96db2e882d9e1d62d9b4c01e2191a4c419
1 parent
c0df94bc
Exists in
master
and in
2 other branches
Change default time interval to three weeks, from two weeks ago to one week ahead.
Showing
2 changed files
with
5 additions
and
5 deletions
Show diff stats
web/static/js/swapp.js
@@ -42,8 +42,8 @@ | @@ -42,8 +42,8 @@ | ||
42 | SpaceWeather.prototype.init = function(){ | 42 | SpaceWeather.prototype.init = function(){ |
43 | "This is called by the inline bootstrap javascript code.\nThis ain't in the constructor because it might return a Promise later on.\n(for the loader, for example)"; | 43 | "This is called by the inline bootstrap javascript code.\nThis ain't in the constructor because it might return a Promise later on.\n(for the loader, for example)"; |
44 | var started_at, stopped_at, this$ = this; | 44 | var started_at, stopped_at, this$ = this; |
45 | - started_at = moment().subtract(1, 'years').hours(0).minutes(0).seconds(0); | ||
46 | - stopped_at = moment().add(7, 'days').hours(0).minutes(0).seconds(0); | 45 | + started_at = moment().subtract(2, 'weeks').hours(0).minutes(0).seconds(0); |
46 | + stopped_at = moment().add(1, 'week').hours(0).minutes(0).seconds(0); | ||
47 | this.setStartAndStop(started_at, stopped_at); | 47 | this.setStartAndStop(started_at, stopped_at); |
48 | this.loadAndCreatePlots(started_at, stopped_at); | 48 | this.loadAndCreatePlots(started_at, stopped_at); |
49 | return window.addEventListener('resize', function(){ | 49 | return window.addEventListener('resize', function(){ |
web/static/js/swapp.ls
@@ -72,10 +72,10 @@ https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE | @@ -72,10 +72,10 @@ https://gitlab.irap.omp.eu/CDPP/SPACEWEATHERONLINE | ||
72 | This ain't in the constructor because it might return a Promise later on. | 72 | This ain't in the constructor because it might return a Promise later on. |
73 | (for the loader, for example) | 73 | (for the loader, for example) |
74 | """ | 74 | """ |
75 | - # Default time interval is from one year ago to one week ahead. | 75 | + # Default time interval is from two weeks ago to one week ahead. |
76 | # We set the h/m/s to zero to benefit from a daily cache. | 76 | # We set the h/m/s to zero to benefit from a daily cache. |
77 | - started_at = moment().subtract(1, 'years').hours(0).minutes(0).seconds(0) | ||
78 | - stopped_at = moment().add(7, 'days').hours(0).minutes(0).seconds(0) | 77 | + started_at = moment().subtract(2, 'weeks').hours(0).minutes(0).seconds(0) |
78 | + stopped_at = moment().add(1, 'week').hours(0).minutes(0).seconds(0) | ||
79 | @setStartAndStop(started_at, stopped_at) | 79 | @setStartAndStop(started_at, stopped_at) |
80 | @loadAndCreatePlots(started_at, stopped_at) | 80 | @loadAndCreatePlots(started_at, stopped_at) |
81 | 81 |