feat: cards, attributes and modules

This commit is contained in:
2025-02-19 14:46:31 +04:00
parent a509a3a586
commit 1af78ce08a
61 changed files with 3212 additions and 2795 deletions

View File

@@ -9,7 +9,7 @@ from sqlalchemy.ext.asyncio import AsyncSession
from sqlalchemy.orm import selectinload
from models import ProductBarcode, Product, ShippingWarehouse, BaseMarketplace
from schemas.deal import ParsedProductRowSchema, ParseDealsExcelResponse, ParsedCityBreakdownSchema, \
from schemas.card import ParsedProductRowSchema, ParseCardsExcelResponse, ParsedCityBreakdownSchema, \
OptionalShippingWarehouseSchema
from schemas.marketplace import MarketplaceSchema, BaseMarketplaceSchema
from schemas.product import ProductSchema
@@ -133,7 +133,7 @@ class DealParser:
return rows
async def parse(self, file_bytes: bytes) -> ParseDealsExcelResponse:
async def parse(self, file_bytes: bytes) -> ParseCardsExcelResponse:
p = mock.patch('openpyxl.styles.fonts.Font.family.max', new=100)
p.start()
@@ -144,4 +144,4 @@ class DealParser:
rows = await self._parse_barcodes(ws)
return ParseDealsExcelResponse(rows=rows, errors=self._errors)
return ParseCardsExcelResponse(rows=rows, errors=self._errors)