Compare commits
No commits in common. "1ae360b0718d96f7f87e70ed1d19a8af2bb7b02c" and "ed1334f00aeaf54df43e1ae25002120a7c62487f" have entirely different histories.
1ae360b071
...
ed1334f00a
@ -332,10 +332,7 @@ async def update_events(authorize: Annotated[bool, Depends(permissions_checker.P
|
|||||||
event_repository = events.EventRepository(database=database.database)
|
event_repository = events.EventRepository(database=database.database)
|
||||||
tags_repository = tags.TagsRepository(database=database.database)
|
tags_repository = tags.TagsRepository(database=database.database)
|
||||||
|
|
||||||
event = event_repository.find_one_by( {"$and": [
|
event = event_repository.find_one_by({"name": {'$eq': eventSingle.name}})
|
||||||
{"start_date": {"$eq": eventSingle.start_date}}, # Already started
|
|
||||||
{"name": {"$eq": eventSingle.name}},
|
|
||||||
]})
|
|
||||||
if event is not None:
|
if event is not None:
|
||||||
raise HTTPException(
|
raise HTTPException(
|
||||||
status_code=status.HTTP_204_NO_CONTENT,
|
status_code=status.HTTP_204_NO_CONTENT,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user