summaryrefslogtreecommitdiffstats
path: root/pages/dozmod.py
diff options
context:
space:
mode:
Diffstat (limited to 'pages/dozmod.py')
-rw-r--r--pages/dozmod.py16
1 files changed, 11 insertions, 5 deletions
diff --git a/pages/dozmod.py b/pages/dozmod.py
index 37c108d..61a99ee 100644
--- a/pages/dozmod.py
+++ b/pages/dozmod.py
@@ -20,17 +20,21 @@ def layout():
id='dozmod-days',
options=[{'label': '{} days'.format(d), 'value': d} for d in [7, 30, 90]],
value=7,
- clearable=False
+ clearable=False,
+ persistence=True,
+ persistence_type='memory'
)
]),
dbc.Col(width=12, lg=3, children=[
dcc.DatePickerRange(
id='dozmod-range',
- start_date=dt.datetime.now() - dt.timedelta(days=12*30),
- end_date=dt.datetime.now(),
+ start_date=(dt.datetime.now() - dt.timedelta(days=12*30)).date(),
+ end_date=dt.datetime.now().date(),
display_format='DD-MM-YYYY',
initial_visible_month=dt.datetime.now(),
- first_day_of_week=1
+ first_day_of_week=1,
+ persistence=True,
+ persistence_type='memory'
),
]),
dbc.Col(width=12, lg=6, children=[
@@ -39,7 +43,9 @@ def layout():
options=[{'label': s, 'value': s} for s in get_satellites()],
multi=True,
value=[],
- placeholder='All Satellites'
+ placeholder='All Satellites',
+ persistence=True,
+ persistence_type='memory'
)
])
]),