Skip to content

Commit

Permalink
Do not sell items with 0 price
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamGagorik committed Nov 8, 2024
1 parent f2ecc44 commit 69cf46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ffxiahbot/auction/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 69cf46a

Please sign in to comment.