Working with stub classes

This commit is contained in:
nemunaire 2016-07-10 18:46:03 +02:00
commit 5b7b3f656b
2 changed files with 157 additions and 45 deletions

View file

@ -26,11 +26,11 @@ if __name__ == "__main__":
#with open("res.json") as f:
# import json
# res = json.load(f)
# res = ct.Search(**json.load(f))
res = ct.search(departure, arrival, departure_time)
min_trips = ct.cheapest_trips(res["trips"])
min_trips = ct.cheapest_trips(res.trips)
for trip in min_trips:
print(ct.display_trip(trip, res["stations"], res["segments"]))
print(trip)
else:
print("usage")