mirror of
https://github.com/myronblair/epic-download
synced 2026-06-30 17:51:00 -05:00
auto-commit for 8ed86e4d-a0e9-4c5c-b2b5-313c1bc955e5
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user