Skip to content

Commit

Permalink
Fix for TradeDB ignoring entries with a negative stock level (-1 is i…
Browse files Browse the repository at this point in the history
…ntended for 'unknown')
  • Loading branch information
kfsone committed Sep 27, 2014
1 parent adf5b38 commit 0025667
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -700,8 +700,8 @@ def loadTrades(self):
ON src.item_id = dst.item_id
WHERE src.buy_from > 0
AND profit > 0
AND src.stock_level > 0
AND dst.demand_level > 0
AND src.stock_level != 0
AND dst.demand_level != 0
AND src.ui_order > 0
AND dst.ui_order > 0
ORDER BY profit DESC
Expand Down

0 comments on commit 0025667

Please sign in to comment.