NR: Use station_summary for service listing

This commit is contained in:
Evelyn 2017-03-09 12:16:41 +00:00
parent e175567537
commit ad8bde0232

View file

@ -212,11 +212,7 @@ class Module(object):
Utils.color(Utils.FONT_RESET) Utils.color(Utils.FONT_RESET)
) for t in trains_filtered]) ) for t in trains_filtered])
event["stdout"].write("%s (%s, %s%s)%s: %s" % (query["locationName"], query["crs"], event["stdout"].write("%s%s: %s" % (station_summary, " departures calling at %s" % filter["inter"] if filter["inter"] else '', trains_string))
query["stationManagerCode"],
", %s%s severe messages%s" % (Utils.color(Utils.COLOR_RED), nrcc_severe, Utils.color(Utils.FONT_RESET)) if nrcc_severe else "",
" departures calling at %s" % filter["inter"] if filter["inter"] else '',
trains_string))
def service(self, event): def service(self, event):
client = self.client client = self.client