aboutsummaryrefslogtreecommitdiff
path: root/modules/tfl.py
diff options
context:
space:
mode:
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},