diff options
author | Yuchen Pei <hi@ypei.me> | 2022-04-05 12:47:11 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2022-04-07 21:00:13 +1000 |
commit | 60415a2d640364ff7348d4580995494479203f59 (patch) | |
tree | 08cf94fdcbfd726f8e3eaeeba8395b64adbf105a /ptv.py | |
parent | 64caef983381f8f1938b4baa748705c149ad7534 (diff) |
linting changes
Diffstat (limited to 'ptv.py')
-rwxr-xr-x | ptv.py | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -4,6 +4,7 @@ import ptv_client import cli_view import util + def main(): stop_and_routes = list( ptv_client.get_stop_and_routes(ptv_client.search(input('Query: ')))) @@ -16,9 +17,12 @@ def main(): departures = ptv_client.get_departures_from_stop_and_route( *stop_and_routes[idx]) filtered_deps = util.filter_departures(departures['departures']) - print(cli_view.format_departures( - filtered_deps, - ptv_client.get_direction_names(stop_and_routes[idx][1]['route_id']))) + print( + cli_view.format_departures( + filtered_deps, + ptv_client.get_direction_names( + stop_and_routes[idx][1]['route_id']))) + if __name__ == "__main__": main() |