From 322c00e18dcf5a12572692bfc95f81c6e7463151 Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Thu, 9 Nov 2023 21:03:13 +0100 Subject: [PATCH] remove list --- app/models/events.py | 6 ------ app/routers/events.py | 6 ------ 2 files changed, 12 deletions(-) diff --git a/app/models/events.py b/app/models/events.py index eb57b6d..f788e08 100644 --- a/app/models/events.py +++ b/app/models/events.py @@ -22,9 +22,6 @@ class EventOut(BaseModel): name: str place: str status: int = 0 - participants: list[str] = [] - organizers: list[str] = [] - interested: list[str] = [] start_date: datetime | None = None end_date: datetime | None = None @@ -32,9 +29,6 @@ class EventIn(BaseModel): name: str place: str status: int = 0 - participants: list[str] = [] - organizers: list[str] = [] - interested: list[str] = [] start_date: datetime | None = None end_date: datetime | None = None diff --git a/app/routers/events.py b/app/routers/events.py index ba11686..c89ed21 100644 --- a/app/routers/events.py +++ b/app/routers/events.py @@ -142,9 +142,6 @@ async def update_events_me(item_id: str, current_user: Annotated[users.User, Dep event.place = EventSingle.place event.start_date = eventSingle.start_date event.end_date = eventSingle.end_date - event.organizers = eventSingle.organizers - event.participants = eventSingle.participants - event.interested = eventSingle.interested event.updated_at = datetime.today() event_repository.save(event) content = {"message": "event is updated"} @@ -198,9 +195,6 @@ async def update_events_id(item_id: str, authorize: Annotated[bool, Depends(perm event.place = EventSingle.place event.start_date = eventSingle.start_date event.end_date = eventSingle.end_date - event.organizers = eventSingle.organizers - event.participants = eventSingle.participants - event.interested = eventSingle.interested event.updated_at = datetime.today() event_repository.save(event) content = {"message": "event is updated"}