Spaces:
Running
Running
“botayla” commited on
Commit ·
fa5b4a2
1
Parent(s): c8eb410
update
Browse files
src/recommendation/recommender.py
CHANGED
|
@@ -29,6 +29,15 @@ class RecommendationService:
|
|
| 29 |
"""
|
| 30 |
logger.info(f"📚 Fetching notes for user: {user_id}")
|
| 31 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
try:
|
| 33 |
|
| 34 |
notes_ref = (
|
|
|
|
| 29 |
"""
|
| 30 |
logger.info(f"📚 Fetching notes for user: {user_id}")
|
| 31 |
|
| 32 |
+
try:
|
| 33 |
+
|
| 34 |
+
sample = db.collection("notes").limit(1).stream()
|
| 35 |
+
for doc in sample:
|
| 36 |
+
logger.info(f"🔍 Sample note fields: {doc.to_dict().keys()}")
|
| 37 |
+
logger.info(f"🔍 Sample note data: {doc.to_dict()}")
|
| 38 |
+
except Exception as e:
|
| 39 |
+
logger.error(f"❌ {e}")
|
| 40 |
+
|
| 41 |
try:
|
| 42 |
|
| 43 |
notes_ref = (
|