Skip to content

Commit

Permalink
update month_cat_exp edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
davye committed Oct 17, 2024
1 parent 6c0f2b9 commit f37e7a5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion source/backend/resource/resource_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,8 @@ def month_cat_exp():
docs = monthly_summary_ref.limit(1).get()
if not docs:
# raise MissingCollection()
return {}, 200
# return {}, 200
return {"Null": 1}, 200
# Fetch the monthly summary document from the database
monthly_summary = db.collection('Users').document(user_id).collection(collection_date).document('Monthly Summary').get().to_dict()
return jsonify(monthly_summary['category']), 200

0 comments on commit f37e7a5

Please sign in to comment.