Merge pull request #77 from tomtastic/patch-1

Fix API endpoint for get_station_by_id
This commit is contained in:
Micha LaQua 2020-12-03 13:41:47 +01:00 committed by GitHub
commit f349a2686c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -61,7 +61,7 @@ def request(url):
def get_station_by_id(uid): def get_station_by_id(uid):
station_json = request('stations/byid/' + str(uid)) station_json = request('stations/byuuid/' + str(uid))
if station_json and len(station_json): if station_json and len(station_json):
return Station(station_json[0]) return Station(station_json[0])
else: else: