feat: cards, attributes and modules
This commit is contained in:
		@@ -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)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user