aboutsummaryrefslogtreecommitdiff
path: root/modules/tfl.py
diff options
context:
space:
mode:
authorGravatar jesopo2019-01-21 10:46:23 +0000
committerGravatar jesopo2019-01-21 10:46:23 +0000
commit8bf8097dd7d7f93be99aa8dadf5ffb9e05dcd030 (patch)
treed67bc0c6d30fa51d7e5cb49b149137eb681c5323 /modules/tfl.py
parentShow default github web hook event categories in ghwebhook.md (github) (diff)
signature
`bus_stop` isnt a `Response` object (tfl.py)
Diffstat (limited to 'modules/tfl.py')
-rw-r--r--modules/tfl.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/tfl.py b/modules/tfl.py
index 8325918e..7bc757b2 100644
--- a/modules/tfl.py
+++ b/modules/tfl.py
@@ -67,8 +67,8 @@ class Module(ModuleManager.BaseModule):
get_params={"app_id": app_id, "app_key": app_key},
json=True)
bus_stop = bus_search.data["matches"][0]
- real_stop_id = bus_stop.data["id"]
- stop_name = bus_stop.data["name"]
+ real_stop_id = bus_stop["id"]
+ stop_name = bus_stop["name"]
else:
bus_stop = utils.http.request(URL_STOP % stop_id,
get_params={"app_id": app_id, "app_key": app_key},