Show station IDs again in connections. Just so used to them.
This commit is contained in:
parent
85dc66aed3
commit
5a1efeecc9
|
@ -272,7 +272,7 @@ class Connection:
|
||||||
|
|
||||||
return out
|
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 + "{\n"
|
||||||
|
|
||||||
out += (" " * indent + " \"@id\": %i,\n" % cid) if cid is not False else ""
|
out += (" " * indent + " \"@id\": %i,\n" % cid) if cid is not False else ""
|
||||||
|
|
Loading…
Reference in a new issue