From 69cf46ad114b6d5102dbd708ccc6331e49d2d7f4 Mon Sep 17 00:00:00 2001 From: Adam Gagorik Date: Fri, 8 Nov 2024 14:05:15 -0500 Subject: [PATCH] Do not sell items with 0 price --- ffxiahbot/auction/manager.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ffxiahbot/auction/manager.py b/ffxiahbot/auction/manager.py index 65edbf4..7d5f68f 100644 --- a/ffxiahbot/auction/manager.py +++ b/ffxiahbot/auction/manager.py @@ -212,7 +212,7 @@ def restock_items(self, item_list: ItemList, use_selling_rates: bool = False) -> with progress_bar("[red]Restocking Items...", total=len(item_list)) as (progress, task): for item in item_list.items.values(): # singles - if item.sell_single: + if item.sell_single and item.price_single > 0: self._sell_item( item.itemid, stack=False, @@ -223,7 +223,7 @@ def restock_items(self, item_list: ItemList, use_selling_rates: bool = False) -> progress.update(task, advance=0.5) # stacks - if item.sell_stacks: + if item.sell_stacks and item.price_stacks > 0: self._sell_item( item.itemid, stack=True,