Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -655,7 +655,7 @@ with tab5:
|
|
655 |
if game_rot_view == 'Player Rotations':
|
656 |
display = st.container()
|
657 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
658 |
-
check_rotation = check_rotation.sort_values(by='Start', ascending=
|
659 |
|
660 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
661 |
fig.update_yaxes(autorange="reversed")
|
@@ -671,7 +671,7 @@ with tab5:
|
|
671 |
elif game_rot_view == 'Team Rotations':
|
672 |
display = st.container()
|
673 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
674 |
-
check_rotation = check_rotation.sort_values(by='Start', ascending=
|
675 |
|
676 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
677 |
fig.update_yaxes(autorange="reversed")
|
@@ -682,4 +682,4 @@ with tab5:
|
|
682 |
fig.add_vline(x=24, line_width=3, line_dash="dash", line_color="green")
|
683 |
fig.add_vline(x=36, line_width=3, line_dash="dash", line_color="green")
|
684 |
# pages = pages.set_index('Player')
|
685 |
-
display.plotly_chart(fig, use_container_width=True)
|
|
|
655 |
if game_rot_view == 'Player Rotations':
|
656 |
display = st.container()
|
657 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
658 |
+
check_rotation = check_rotation.sort_values(by='Start', ascending=True)
|
659 |
|
660 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
661 |
fig.update_yaxes(autorange="reversed")
|
|
|
671 |
elif game_rot_view == 'Team Rotations':
|
672 |
display = st.container()
|
673 |
check_rotation = working_data[working_data['backlog_lookup'] == game_id_var]
|
674 |
+
check_rotation = check_rotation.sort_values(by='Start', ascending=True)
|
675 |
|
676 |
fig = px.timeline(check_rotation, x_start="Start", x_end="Finish", y="Task", range_x=[0,check_rotation["Finish"].max()], text='minutes')
|
677 |
fig.update_yaxes(autorange="reversed")
|
|
|
682 |
fig.add_vline(x=24, line_width=3, line_dash="dash", line_color="green")
|
683 |
fig.add_vline(x=36, line_width=3, line_dash="dash", line_color="green")
|
684 |
# pages = pages.set_index('Player')
|
685 |
+
display.plotly_chart(fig, theme=None, use_container_width=True)
|