remove list

This commit is contained in:
Valentin CZERYBA 2023-11-09 21:03:13 +01:00
parent c7b209030e
commit 322c00e18d
2 changed files with 0 additions and 12 deletions

View File

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

View File

@ -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"}