Show station IDs again in connections. Just so used to them.

This commit is contained in:
Klaus-Uwe Mitterer 2017-09-25 22:28:42 +02:00
parent 85dc66aed3
commit 5a1efeecc9

View file

@ -272,7 +272,7 @@ class Connection:
return out
def json(self, indent = 0, cid = False, frm = True, to = True, deptime = True, arrtime = True, duration = True, changes = True, services = True, servicekwargs = {"stationkwargs": {"extid": False}}, stationkwargs = {"extid": False}):
def json(self, indent = 0, cid = False, frm = True, to = True, deptime = True, arrtime = True, duration = True, changes = True, services = True, servicekwargs = {}, stationkwargs = {}):
out = " " * indent + "{\n"
out += (" " * indent + " \"@id\": %i,\n" % cid) if cid is not False else ""