Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -562,9 +562,6 @@ def PastHistory():
|
|
562 |
if "load_state" not in st.session_state:
|
563 |
st.session_state.load_state = False
|
564 |
|
565 |
-
if "button_clicked" not in st.session_state:
|
566 |
-
st.session_state.button_clicked = False
|
567 |
-
|
568 |
if "admission_button_clicked" not in st.session_state:
|
569 |
st.session_state.admission_button_clicked = False
|
570 |
|
@@ -576,21 +573,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()
|
|
|
562 |
if "load_state" not in st.session_state:
|
563 |
st.session_state.load_state = False
|
564 |
|
|
|
|
|
|
|
565 |
if "admission_button_clicked" not in st.session_state:
|
566 |
st.session_state.admission_button_clicked = False
|
567 |
|
|
|
573 |
|
574 |
|
575 |
|
576 |
+
if btnAdmission or st.session_state["admission_button_clicked"]:
|
577 |
+
#st.session_state["admission_button_clicked"] = True
|
578 |
st.session_state["daily_button_clicked"] = False
|
579 |
st.session_state["past_button_clicked"] = False
|
580 |
Admission()
|
581 |
|
582 |
if btnDailyNarrative or st.session_state["daily_button_clicked"]:
|
583 |
+
#st.session_state["daily_button_clicked"] = True
|
584 |
st.session_state["admission_button_clicked"] = False
|
585 |
st.session_state["past_button_clicked"] = False
|
586 |
DailyNarrative()
|
587 |
|
588 |
|
589 |
if btnPastHistory or st.session_state["past_button_clicked"]:
|
590 |
+
#st.session_state["past_button_clicked"] = True
|
591 |
st.session_state["daily_button_clicked"] = False
|
592 |
st.session_state["admission_button_clicked"] = False
|
593 |
+
PastHistory()
|