Skip to content

Commit

Permalink
Fix bug in market command
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Feb 24, 2015
1 parent 90374a7 commit 3df1364
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions commands/market_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,16 +77,20 @@ def run(results, cmdenv, tdb):
ss.units,
ss.level,
JULIANDAY('now') - JULIANDAY(ss.modified)
FROM StationItem si,
StationBuying AS sb,
StationSelling AS ss
WHERE si.station_id = ? AND
sb.station_id = ? AND
ss.station_id = ? AND
sb.item_id = si.item_id AND
ss.item_id = si.item_id
FROM StationItem si
LEFT OUTER JOIN StationBuying AS sb
ON (
si.station_id = sb.station_id AND
si.item_id = sb.item_id
)
LEFT OUTER JOIN StationSelling AS ss
ON (
si.station_id = ss.station_id AND
si.item_id = ss.item_id
)
WHERE si.station_id = ?
""", [
origin.ID, origin.ID, origin.ID
origin.ID,
])

for row in cur:
Expand Down

0 comments on commit 3df1364

Please sign in to comment.