fix(): fix models for get flags

This commit is contained in:
Black_Raven committed 2026-05-25 20:05:16 +03:00
1 parent 77ebb0e3a8
commit 81ff26fdb8
4 files changed
+64 -37

No files matched your search

+2 -1
View File
@@ -8,13 +8,14 @@ class AttributeValue(BaseModel):
class Attribute(BaseModel):
id: int
name: str
flag: str # добавлено поле flag
vals: List[AttributeValue]
class Category(BaseModel):
id: int
name: str
image: Optional[str] = None
atributes: List[Attribute] = []
attributes: List[Attribute] = [] # исправлено atributes → attributes
class Config:
from_attributes = True