From 7f547f39384741bae07ad7406eb8cb55fe9f4259 Mon Sep 17 00:00:00 2001 From: Lukas Metzger Date: Wed, 10 Jun 2020 15:38:34 +0200 Subject: Changed default timeframe to 365 days --- pages/dozmod.py | 2 +- 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(), -- cgit v1.2.3-55-g7522