Skip to content

Commit

Permalink
fix: typo caused buy command to error
Browse files Browse the repository at this point in the history
- the code that should render the Average line at the end of
a buy report had a typo that caused a string to become a list of
strings, and the subsequent code could not handle that.
  • Loading branch information
kfsone authored and eyeonus committed May 1, 2024
1 parent 38e4ac9 commit f016cec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tradedangerous/commands/buy_cmd.py
Original file line number Diff line number Diff line change
Expand Up @@ -412,5 +412,5 @@ def render(results, cmdenv, tdb):
print(stnRowFmt.format(row))

if singleMode and cmdenv.detail:
msg = "-- Ship Cost" if mode is SHIP_MODE else "-- Average",
msg = "-- Ship Cost" if mode is SHIP_MODE else "-- Average"
print(f"{msg:{maxStnLen}} {results.summary.avg:>10n}")

0 comments on commit f016cec

Please sign in to comment.