summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLukas Metzger2020-05-23 11:28:24 +0200
committerLukas Metzger2020-05-23 11:28:24 +0200
commit3d5f5b7e0d15728e0c07370dc275f604cb24b63c (patch)
treeba3e1976ec775a84f34708d68f931ed237b4a1fe
parentFirst version (diff)
downloadbwlp-statistics-3d5f5b7e0d15728e0c07370dc275f604cb24b63c.tar.gz
bwlp-statistics-3d5f5b7e0d15728e0c07370dc275f604cb24b63c.tar.xz
bwlp-statistics-3d5f5b7e0d15728e0c07370dc275f604cb24b63c.zip
Fix ids to be unique
-rw-r--r--pages/total.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/pages/total.py b/pages/total.py
index dcc52ea..843d581 100644
--- a/pages/total.py
+++ b/pages/total.py
@@ -44,20 +44,20 @@ def layout():
])
]),
dbc.Row([dbc.Col([
- dcc.Graph(id='graph-times')
+ dcc.Graph(id='total-graph-times')
])]),
dbc.Row([dbc.Col([
- dcc.Graph(id='graph-session-length')
+ dcc.Graph(id='total-graph-session-length')
])]),
dbc.Row([dbc.Col([
- dcc.Graph(id='graph-sessions')
+ dcc.Graph(id='total-graph-sessions')
])]),
dbc.Row([dbc.Col([
- dcc.Graph(id='graph-users')
+ dcc.Graph(id='total-graph-users')
])])
])
-@app.callback(Output('graph-times', 'figure'),
+@app.callback(Output('total-graph-times', 'figure'),
[Input('total-days', 'value'),
Input('total-range', 'start_date'),
Input('total-range', 'end_date'),
@@ -109,7 +109,7 @@ def make_graph_times(days, rangeStart, rangeEnd, satellites):
)
return figure
-@app.callback(Output('graph-session-length', 'figure'),
+@app.callback(Output('total-graph-session-length', 'figure'),
[Input('total-days', 'value'),
Input('total-range', 'start_date'),
Input('total-range', 'end_date'),
@@ -150,7 +150,7 @@ def make_graph_session_length(days, rangeStart, rangeEnd, satellites):
)
return figure
-@app.callback(Output('graph-sessions', 'figure'),
+@app.callback(Output('total-graph-sessions', 'figure'),
[Input('total-days', 'value'),
Input('total-range', 'start_date'),
Input('total-range', 'end_date'),
@@ -196,7 +196,7 @@ def make_graph_sessions(days, rangeStart, rangeEnd, satellites):
)
return figure
-@app.callback(Output('graph-users', 'figure'),
+@app.callback(Output('total-graph-users', 'figure'),
[Input('total-days', 'value'),
Input('total-range', 'start_date'),
Input('total-range', 'end_date'),