Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -90,9 +90,15 @@ def main():
|
|
90 |
# Then query to list all users
|
91 |
complaints_ref = db.collection('complaints')
|
92 |
|
|
|
93 |
for doc in complaints_ref.stream():
|
94 |
-
|
|
|
95 |
|
|
|
|
|
|
|
|
|
96 |
|
97 |
|
98 |
if st.button("Logout", key="logout_button"):
|
|
|
90 |
# Then query to list all users
|
91 |
complaints_ref = db.collection('complaints')
|
92 |
|
93 |
+
complaints_list = []
|
94 |
for doc in complaints_ref.stream():
|
95 |
+
a = doc.to_dict()
|
96 |
+
complaints_list.append(a)
|
97 |
|
98 |
+
complaints_df = pd.DataFrame(complaints_list)
|
99 |
+
|
100 |
+
st.dataframe(complaints_df)
|
101 |
+
|
102 |
|
103 |
|
104 |
if st.button("Logout", key="logout_button"):
|