Skip to content

Commit

Permalink
Fixed sorted in many/one-shot mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Feb 27, 2015
1 parent 09c5df8 commit 5060617
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/buy_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def run(results, cmdenv, tdb):
raise NoDataError("No one-stop stations found")
raise NoDataError("No available items found")

if oneStopMode and singleMode:
if oneStopMode and not singleMode:
results.rows.sort(key=lambda result: result.item.name())
results.rows.sort(key=lambda result: result.station.name())
if cmdenv.sortByStock:
Expand Down

0 comments on commit 5060617

Please sign in to comment.