Update app.py
Browse files
app.py
CHANGED
@@ -44,15 +44,18 @@ if st.session_state.logged_in:
|
|
44 |
|
45 |
# Button to check today's stand-up taker
|
46 |
if st.button("Who is taking the stand-up today?"):
|
47 |
-
next_taker = get_next_standup_taker(last_standup_taker, last_date)
|
48 |
-
|
|
|
49 |
|
50 |
# Update dataset with new standup taker and date
|
51 |
-
|
52 |
'standup_taker': next_taker,
|
53 |
'date': datetime.now().strftime("%Y-%m-%d")
|
54 |
-
}
|
55 |
-
|
|
|
|
|
56 |
# Initialize state for text field
|
57 |
if 'forced_taker' not in st.session_state:
|
58 |
st.session_state.forced_taker = ""
|
|
|
44 |
|
45 |
# Button to check today's stand-up taker
|
46 |
if st.button("Who is taking the stand-up today?"):
|
47 |
+
next_taker, next_date = get_next_standup_taker(last_standup_taker, last_date)
|
48 |
+
if isinstance(next_taker, str):
|
49 |
+
st.write(f"The person taking the stand-up today is **{next_taker}**.")
|
50 |
|
51 |
# Update dataset with new standup taker and date
|
52 |
+
new_entry = {
|
53 |
'standup_taker': next_taker,
|
54 |
'date': datetime.now().strftime("%Y-%m-%d")
|
55 |
+
}
|
56 |
+
else:
|
57 |
+
st.write(next_taker)
|
58 |
+
|
59 |
# Initialize state for text field
|
60 |
if 'forced_taker' not in st.session_state:
|
61 |
st.session_state.forced_taker = ""
|