diff options
author | Lukas Metzger | 2020-06-10 15:38:34 +0200 |
---|---|---|
committer | Lukas Metzger | 2020-06-10 15:38:34 +0200 |
commit | 7f547f39384741bae07ad7406eb8cb55fe9f4259 (patch) | |
tree | b0ba839457b5fd649f253135faf9311dbe56585e | |
parent | Added persistence for inputs (diff) | |
download | bwlp-statistics-7f547f39384741bae07ad7406eb8cb55fe9f4259.tar.gz bwlp-statistics-7f547f39384741bae07ad7406eb8cb55fe9f4259.tar.xz bwlp-statistics-7f547f39384741bae07ad7406eb8cb55fe9f4259.zip |
Changed default timeframe to 365 days
-rw-r--r-- | pages/dozmod.py | 2 | ||||
-rw-r--r-- | pages/total.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/pages/dozmod.py b/pages/dozmod.py index 61a99ee..4d9fb24 100644 --- a/pages/dozmod.py +++ b/pages/dozmod.py @@ -28,7 +28,7 @@ def layout(): dbc.Col(width=12, lg=3, children=[ dcc.DatePickerRange( id='dozmod-range', - start_date=(dt.datetime.now() - dt.timedelta(days=12*30)).date(), + start_date=(dt.datetime.now() - dt.timedelta(days=365)).date(), end_date=dt.datetime.now().date(), display_format='DD-MM-YYYY', initial_visible_month=dt.datetime.now(), diff --git a/pages/total.py b/pages/total.py index 4fb6b83..eb7a63c 100644 --- a/pages/total.py +++ b/pages/total.py @@ -28,7 +28,7 @@ def layout(): dbc.Col(width=12, lg=3, children=[ dcc.DatePickerRange( id='total-range', - start_date=(dt.datetime.now() - dt.timedelta(days=12*30)).date(), + start_date=(dt.datetime.now() - dt.timedelta(days=365)).date(), end_date=dt.datetime.now().date(), display_format='DD-MM-YYYY', initial_visible_month=dt.datetime.now(), |