Wajahat698 commited on
Commit
006ee8c
·
verified ·
1 Parent(s): d3bbe3a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
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