arif670 commited on
Commit
fb7f2de
Β·
verified Β·
1 Parent(s): d96cb62

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
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=["None"] + [user['email'] for user in db.collection("users").stream()],
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()