Update app.py
Browse files
app.py
CHANGED
|
@@ -331,9 +331,10 @@ def main():
|
|
| 331 |
date = st.date_input("π
Due Date", min_value=datetime.today())
|
| 332 |
|
| 333 |
# Task Assignment
|
|
|
|
| 334 |
assigned_to = st.selectbox(
|
| 335 |
"π€ Assign To",
|
| 336 |
-
options=
|
| 337 |
help="Assign this task to a team member"
|
| 338 |
)
|
| 339 |
|
|
@@ -471,6 +472,7 @@ def main():
|
|
| 471 |
except Exception as e:
|
| 472 |
st.error(f"β Error: {str(e)}")
|
| 473 |
|
|
|
|
| 474 |
# Task Explorer (Updated Date Filter)
|
| 475 |
elif menu == "π Task Explorer":
|
| 476 |
tasks = get_tasks()
|
|
|
|
| 331 |
date = st.date_input("π
Due Date", min_value=datetime.today())
|
| 332 |
|
| 333 |
# Task Assignment
|
| 334 |
+
user_emails = ["None"] + [user.to_dict().get('email') for user in db.collection("users").stream()]
|
| 335 |
assigned_to = st.selectbox(
|
| 336 |
"π€ Assign To",
|
| 337 |
+
options=user_emails,
|
| 338 |
help="Assign this task to a team member"
|
| 339 |
)
|
| 340 |
|
|
|
|
| 472 |
except Exception as e:
|
| 473 |
st.error(f"β Error: {str(e)}")
|
| 474 |
|
| 475 |
+
|
| 476 |
# Task Explorer (Updated Date Filter)
|
| 477 |
elif menu == "π Task Explorer":
|
| 478 |
tasks = get_tasks()
|