diff options
Diffstat (limited to 'autoplanner.py')
-rwxr-xr-x | autoplanner.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/autoplanner.py b/autoplanner.py index d2cd37e..c79dff4 100755 --- a/autoplanner.py +++ b/autoplanner.py @@ -30,10 +30,7 @@ def read_file(filename): f.close() return r -def fake_trip(date): - return read_file("./api_response.json") - -def real_trip(date): +def get_trip(date): headers = { 'Ocp-Apim-Subscription-Key': KEY, 'X-Request-Id': str(uuid4()), @@ -51,9 +48,6 @@ def real_trip(date): conn.close() return data -def get_trip(date): - return real_trip(date) - def leg2desc(leg): desc = "" duration = leg['plannedDurationInMinutes'] |