Merge pull request 'fix end_date' (#30) from feature/searchByDate into master

Reviewed-on: #30
This commit is contained in:
v4l3n71n 2024-11-23 21:06:36 +01:00
commit 721d7a3a5d

View File

@ -195,7 +195,7 @@ async def search_events(authorize: Annotated[bool, Depends(permissions_checker.P
date_selected = True date_selected = True
if start_date is not None and end_date is not None: 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 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 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: 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 = { object_search = {