auto-commit for 8ed86e4d-a0e9-4c5c-b2b5-313c1bc955e5

This commit is contained in:
emergent-agent-e1
2026-03-31 17:02:14 +00:00
parent ee2daae936
commit 6488998a87
6 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ def set_db(database):
@router.get("", response_model=List[Special])
async def get_specials():
"""Get all weekly specials"""
specials = await db.specials.find().to_list(1000)
specials = await db.specials.find({}, {'_id': 0}).limit(100).to_list(100)
# Convert MongoDB _id to id for response
for special in specials: