summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Metzger2020-06-10 15:38:34 +0200
committerLukas Metzger2020-06-10 15:38:34 +0200
commit7f547f39384741bae07ad7406eb8cb55fe9f4259 (patch)
treeb0ba839457b5fd649f253135faf9311dbe56585e
parentAdded persistence for inputs (diff)
downloadbwlp-statistics-7f547f39384741bae07ad7406eb8cb55fe9f4259.tar.gz
bwlp-statistics-7f547f39384741bae07ad7406eb8cb55fe9f4259.tar.xz
bwlp-statistics-7f547f39384741bae07ad7406eb8cb55fe9f4259.zip
Changed default timeframe to 365 days
-rw-r--r--pages/dozmod.py2
-rw-r--r--pages/total.py2
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(),