From 360ac8771aed4b7f68e7280af1668521a636af3f Mon Sep 17 00:00:00 2001 From: Valentin CZERYBA Date: Wed, 23 Oct 2024 23:36:09 +0200 Subject: [PATCH] add event set status to 1 --- app/routers/events.py | 1 + 1 file changed, 1 insertion(+) diff --git a/app/routers/events.py b/app/routers/events.py index 3bec5aa..18e9fc5 100644 --- a/app/routers/events.py +++ b/app/routers/events.py @@ -202,6 +202,7 @@ async def update_events(authorize: Annotated[bool, Depends(permissions_checker.P event.longitude = eventSingle.longitude event.imgUrl = eventSingle.imgUrl event.tags = eventSingle.tags + event.status = 1 event.created_at = datetime.today() event_repository.save(event) content = {"message": "event is created"} -- 2.47.1