This commit is contained in:
2026-01-08 17:51:12 +03:00
parent e22abc8057
commit 9980c1f002
7 changed files with 316 additions and 47 deletions

View File

@@ -4,7 +4,7 @@ class ExcelInfo(BaseModel):
arti:str = Field(..., min_length=5, max_length=12, description="arti of the clothes")
counts:int = Field(..., gt=0, description="the quantity of the clothes")
price:float = Field(..., gt=0, description="the price of the clothes")
#ref_key:str = Field(..., description="reffering key from db")
ref_key:str = Field(..., description="reffering key from db")
class ExcelRealization(BaseModel):
pass
class ExcelReturning(BaseModel):
@@ -42,6 +42,12 @@ class Settings(BaseSettings):
A90_02_1:str
A90_03:str
A76_09:str
A44_01:str
A19_04:str
TYPE1:str
TYPE2:str
TYPE3:str
TYPE4:str
model_config = SettingsConfigDict(
env_file=".env",
env_file_encoding="utf-8"