connect elevators and add ctypes elevator_up and elevator_down
This commit is contained in:
parent
6b0d3aeac2
commit
8a1f8bb290
6 changed files with 72 additions and 10 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue