Skip to content

Commit

Permalink
refactor: include system name in "updated"/"added" logs
Browse files Browse the repository at this point in the history
  • Loading branch information
eyeonus committed May 28, 2024
1 parent 845aa9f commit 4e403fe
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tradedangerous/plugins/spansh_plug.py
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,10 @@ def ensure_station(self, station: Station) -> None:
)
note = "Updated" if self.known_stations.get(station.id) else "Added"
if self.tdenv.detail > 1:
self.print(f' | {station.name:50s} | {note} station')
system_name = self.known_systems[station.system_id]
upper_sys = system_name.upper()
fq_station_name = f'@{upper_sys}/{station.name}'
self.print(f' | {fq_station_name:50s} | {note} station')
self.known_stations[station.id] = (station.name, station.system_id, station.modified)

def ensure_commodity(self, commodity: Commodity):
Expand Down

0 comments on commit 4e403fe

Please sign in to comment.