Working with stub classes
This commit is contained in:
parent
44ca3f6808
commit
5b7b3f656b
2 changed files with 157 additions and 45 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue