Skip to content

Commit

Permalink
Display names rather than objects when displaying the avoids list
Browse files Browse the repository at this point in the history
  • Loading branch information
kfsone committed Sep 4, 2014
1 parent e0ea8a1 commit 91ff5fe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion trade.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ def parseAvoids(avoidances):
if system and station and station.system != system: raise AmbiguityError('Avoidance', avoid, system.str(), station.str())

if args.debug:
print("Avoiding items %s, systems %s, stations %s" % (avoidItems, avoidSystems, avoidStations))
print("Avoiding items %s, systems %s, stations %s" % (
[ item.name() for item in avoidItems ],
[ system.name() for system in avoidSystems ],
[ station.name() for station in avoidStations ]
))


def processRunArguments(args):
Expand Down

0 comments on commit 91ff5fe

Please sign in to comment.