diff --git a/utils.py b/utils.py index 258b223..4771a60 100644 --- a/utils.py +++ b/utils.py @@ -277,7 +277,7 @@ def eventsWithSorting( if name is not None and pagination: searchspace["name"] = {"$regex": name, "$options": "i"} - + ongoing_events_query = { **searchspace, "datetimeperiod.0": {"$lte": current_datetime},