fix ocr
This commit is contained in:
@@ -1,12 +1,11 @@
|
||||
from datetime import datetime
|
||||
from uuid import UUID
|
||||
|
||||
from pydantic import BaseModel
|
||||
|
||||
from app.models.report import ReportType
|
||||
from app.schemas.base import CamelModel
|
||||
|
||||
|
||||
class ReportCreate(BaseModel):
|
||||
class ReportCreate(CamelModel):
|
||||
report_type: ReportType
|
||||
include_summary: bool = True
|
||||
include_transactions: bool = True
|
||||
@@ -17,7 +16,7 @@ class ReportCreate(BaseModel):
|
||||
include_screenshots: bool = False
|
||||
|
||||
|
||||
class ReportOut(BaseModel):
|
||||
class ReportOut(CamelModel):
|
||||
id: UUID
|
||||
case_id: UUID
|
||||
report_type: ReportType
|
||||
@@ -25,9 +24,7 @@ class ReportOut(BaseModel):
|
||||
version: int
|
||||
created_at: datetime
|
||||
|
||||
model_config = {"from_attributes": True}
|
||||
|
||||
|
||||
class ReportListOut(BaseModel):
|
||||
class ReportListOut(CamelModel):
|
||||
items: list[ReportOut]
|
||||
total: int
|
||||
|
||||
Reference in New Issue
Block a user