aboutsummaryrefslogtreecommitdiff
path: root/ptv.py
diff options
context:
space:
mode:
Diffstat (limited to 'ptv.py')
-rwxr-xr-xptv.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/ptv.py b/ptv.py
index 3a46ae7..d5efc77 100755
--- a/ptv.py
+++ b/ptv.py
@@ -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()