From 66324b99445f4deaa908a2bbf2f0281bf08e3049 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Mon, 30 Nov 2015 00:36:19 +0100 Subject: [PATCH] some post bugfixes --- post_frame.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/post_frame.lua b/post_frame.lua index 393765b..b6fd82c 100644 --- a/post_frame.lua +++ b/post_frame.lua @@ -178,7 +178,7 @@ Aux.sell.auction_listing_config = { } function private.parse_inventory() - Aux.sheet.populate(AuxSellInventoryListing.sheet, inventory_data) + Aux.sheet.populate(AuxSellInventoryListing.sheet, Aux.util.filter(inventory_data, function(item) return item.aux_quantity > 0 end)) end function update_auction_listing() @@ -283,6 +283,9 @@ function Aux.sell.post_auctions() end Aux.sell.clear_auction() auction.aux_quantity = auction.aux_quantity - (posted * stack_size) + local charge_class = auction.charges or 0 + auction.availability[charge_class] = auction.availability[charge_class] - (posted * (auction.charges and 1 or stack_size)) + private.parse_inventory() report(hyperlink, stack_size, buyout_price, posted) end