From f08bdd5f0aaa5a7f3f6793b4be7e975b8bba631b Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Sat, 23 Nov 2024 21:03:44 +0100 Subject: [PATCH] fix end_date --- app/routers/events.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/routers/events.py b/app/routers/events.py index ad5ae5f..bd340f0 100644 --- a/app/routers/events.py +++ b/app/routers/events.py @@ -195,7 +195,7 @@ async def search_events(authorize: Annotated[bool, Depends(permissions_checker.P date_selected = True if start_date is not None and end_date is not None: start_of_day = datetime.combine(start_date, datetime.min.time()) # 2024-11-23 00:00:00 - end_of_day = datetime.combine(dateend_date_event, datetime.max.time()) + end_of_day = datetime.combine(end_date, datetime.max.time()) date_selected = True if min_lat is not None and max_lat is not None and min_lon is not None and max_lon is not None: object_search = {