remove list
This commit is contained in:
parent
c7b209030e
commit
322c00e18d
@ -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
|
||||
|
||||
|
@ -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"}
|
||||
|
Loading…
x
Reference in New Issue
Block a user