connect elevators and add ctypes elevator_up and elevator_down

This commit is contained in:
Laura Klünder 2016-12-18 00:26:00 +01:00
parent 6b0d3aeac2
commit 8a1f8bb290
6 changed files with 72 additions and 10 deletions

View file

@ -42,7 +42,8 @@ def main(request, origin=None, destination=None):
route = None
if origin and destination:
graph = Graph.load()
route = graph.get_route(origin, destination, ('', 'steps_down', 'steps_up'))
route = graph.get_route(origin, destination, ('', 'steps_down', 'steps_up', 'elevator_down', 'elevator_up'))
print(route)
route = route.split()
print(route)