From f016cec41f5ced2b18bd682b1e2fee0d00457d8a Mon Sep 17 00:00:00 2001 From: Oliver 'kfsone' Smith Date: Wed, 1 May 2024 11:44:06 -0700 Subject: [PATCH] fix: typo caused buy command to error - 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. --- tradedangerous/commands/buy_cmd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tradedangerous/commands/buy_cmd.py b/tradedangerous/commands/buy_cmd.py index 884c9466..669ff596 100644 --- a/tradedangerous/commands/buy_cmd.py +++ b/tradedangerous/commands/buy_cmd.py @@ -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}")