Skip to content

Commit

Permalink
Fix non-profitable trades being selected
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Nov 17, 2014
1 parent 398f502 commit 172e323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradedb.py
Original file line number Diff line number Diff line change
Expand Up @@ -802,7 +802,7 @@ def loadTrades(self):
INNER JOIN StationBuying AS sb
ON (ss.item_id = sb.item_id
AND ss.station_id != sb.station_id)
WHERE sb.price < ss.price
WHERE ss.price < sb.price
ORDER BY ss.station_id, ss.station_id, profit DESC
"""
self.cur.execute(stmt)
Expand Down

0 comments on commit 172e323

Please sign in to comment.