Sync #6
@ -39,7 +39,7 @@ async def remind(app: PyroClient) -> None:
|
||||
|
||||
entries = await col_entries.find(
|
||||
{
|
||||
"location": {"$in": location.id},
|
||||
"locations": {"$in": location.id},
|
||||
"date": user_date.replace(hour=0, minute=0),
|
||||
}
|
||||
).to_list()
|
||||
|
@ -39,7 +39,7 @@ async def command_upcoming(app: PyroClient, message: Message):
|
||||
await GarbageEntry.from_record(entry)
|
||||
async for entry in col_entries.find(
|
||||
{
|
||||
"location": {"$in": user.location.id},
|
||||
"locations": {"$in": user.location.id},
|
||||
"date": {"$gte": date_min, "$lte": date_max},
|
||||
}
|
||||
)
|
||||
|
Reference in New Issue
Block a user