Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -544,7 +544,13 @@ def download_link(content, filename):
|
|
| 544 |
|
| 545 |
|
| 546 |
|
| 547 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 548 |
|
| 549 |
|
| 550 |
|
|
|
|
| 544 |
|
| 545 |
|
| 546 |
|
| 547 |
+
def fetch_documents(user_id):
|
| 548 |
+
try:
|
| 549 |
+
docs = db.child("users").child(user_id).child("documents").get().val()
|
| 550 |
+
return docs if docs else {}
|
| 551 |
+
except Exception as e:
|
| 552 |
+
st.error(f"Error fetching documents: {e}")
|
| 553 |
+
return {}
|
| 554 |
|
| 555 |
|
| 556 |
|