feat: some stuff

This commit is contained in:
2024-11-04 01:32:14 +03:00
parent 1806f5dec3
commit 757ed72ec3
5 changed files with 18 additions and 3 deletions

View File

@@ -49,7 +49,7 @@ async def get_stocks_data(
sell_blocks: bool = marketplace.sell_blocks
sell_warehouse_products: bool = marketplace.sell_warehouse_products
sell_from_price: int = marketplace.sell_from_price
is_paused = marketplace.is_paused
supplier_stock_subquery = (
select(
func.greatest(
@@ -302,7 +302,7 @@ async def get_stocks_data(
slaves_stock,
price_recommended,
is_archived) in marketplace_products:
if is_archived or (sell_from_price > price_recommended):
if is_archived or (sell_from_price > price_recommended) or is_paused:
response.append({
'article': denco_article,
'full_stock': 0,