fix end_date #30

Merged
v4l3n71n merged 1 commits from feature/searchByDate into master 2024-11-23 20:06:38 +00:00
Showing only changes of commit f08bdd5f0a - Show all commits

View File

@ -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 = {