Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -576,21 +576,21 @@ if "past_button_clicked" not in st.session_state:
|
|
576 |
|
577 |
|
578 |
|
579 |
-
if btnAdmission or st.session_state["
|
580 |
st.session_state["admission_button_clicked"] = True
|
581 |
st.session_state["daily_button_clicked"] = False
|
582 |
st.session_state["past_button_clicked"] = False
|
583 |
Admission()
|
584 |
|
585 |
-
if btnDailyNarrative or st.session_state["daily_button_clicked"]:
|
586 |
st.session_state["daily_button_clicked"] = True
|
587 |
st.session_state["admission_button_clicked"] = False
|
588 |
st.session_state["past_button_clicked"] = False
|
589 |
DailyNarrative()
|
590 |
|
591 |
|
592 |
-
if btnPastHistory or st.session_state["past_button_clicked"]:
|
593 |
st.session_state["past_button_clicked"] = True
|
594 |
-
st.session_state["daily_button_clicked"] = False
|
595 |
st.session_state["admission_button_clicked"] = False
|
|
|
596 |
PastHistory()
|
|
|
576 |
|
577 |
|
578 |
|
579 |
+
if btnAdmission or st.session_state["admission_button_clicked"] and not btnDailyNarrative and not btnPastHistory:
|
580 |
st.session_state["admission_button_clicked"] = True
|
581 |
st.session_state["daily_button_clicked"] = False
|
582 |
st.session_state["past_button_clicked"] = False
|
583 |
Admission()
|
584 |
|
585 |
+
if btnDailyNarrative or st.session_state["daily_button_clicked"] and not btnAdmission and not btnPastHistory:
|
586 |
st.session_state["daily_button_clicked"] = True
|
587 |
st.session_state["admission_button_clicked"] = False
|
588 |
st.session_state["past_button_clicked"] = False
|
589 |
DailyNarrative()
|
590 |
|
591 |
|
592 |
+
if btnPastHistory or st.session_state["past_button_clicked"] and not btnDailyNarrative and not btnAdmission:
|
593 |
st.session_state["past_button_clicked"] = True
|
|
|
594 |
st.session_state["admission_button_clicked"] = False
|
595 |
+
st.session_state["daily_button_clicked"] = False
|
596 |
PastHistory()
|