From 5a1efeecc9f33f71576a89d562a6d8d5f3e4aea9 Mon Sep 17 00:00:00 2001 From: Klaus-Uwe Mitterer Date: Mon, 25 Sep 2017 22:28:42 +0200 Subject: [PATCH] Show station IDs again in connections. Just so used to them. --- classes/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/classes/__init__.py b/classes/__init__.py index ab86542..b77ea11 100644 --- a/classes/__init__.py +++ b/classes/__init__.py @@ -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 ""