From 3dfe6aea84e4df69f658fac61458cd9d4705ec81 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Bournhonesque?= Date: Thu, 15 Feb 2024 10:45:45 +0100 Subject: [PATCH] fix: fix flake8 error --- app/api.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/api.py b/app/api.py index dc293cb..cc5f900 100644 --- a/app/api.py +++ b/app/api.py @@ -82,7 +82,9 @@ class TicketCreate(BaseModel): ) type: IssueType = Field(..., description="Type of the issue") url: str = Field(..., description="URL of the product or of the flagged image") - status: TicketStatus = Field(TicketStatus.open, description="Status of the ticket") + status: TicketStatus = Field( + default=TicketStatus.open, description="Status of the ticket" + ) image_id: str | None = Field( None, description="ID of the flagged image, if the ticket type is `image`",