mirror of
https://github.com/myronblair/epic-download
synced 2026-07-28 13:02:41 -05:00
auto-commit for 8ed86e4d-a0e9-4c5c-b2b5-313c1bc955e5
This commit is contained in:
@@ -28,7 +28,7 @@ async def get_destinations(category: Optional[str] = None, search: Optional[str]
|
||||
{"location": {"$regex": search, "$options": "i"}}
|
||||
]
|
||||
|
||||
destinations = await db.destinations.find(query).to_list(1000)
|
||||
destinations = await db.destinations.find(query, {'_id': 0}).limit(100).to_list(100)
|
||||
|
||||
# Convert MongoDB _id to id for response
|
||||
for dest in destinations:
|
||||
|
||||
Reference in New Issue
Block a user