rairo commited on
Commit
142a644
·
verified ·
1 Parent(s): 38e1c37

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +8 -1
app.py CHANGED
@@ -86,7 +86,14 @@ def main():
86
 
87
 
88
  # Display weekly and monthly summaries
89
- st.header("Weekly and Monthly Trends")
 
 
 
 
 
 
 
90
 
91
  if st.button("Logout", key="logout_button"):
92
  del st.session_state["user_id"]
 
86
 
87
 
88
  # Display weekly and monthly summaries
89
+ st.header("Complaints")
90
+ # Then query to list all users
91
+ complaints_ref = db.collection('complaints')
92
+
93
+ for doc in complaints_ref.stream():
94
+ st.write('{} => {}'.format(doc.id, doc.to_dict())
95
+
96
+
97
 
98
  if st.button("Logout", key="logout_button"):
99
  del st.session_state["user_id"]