Esempio n. 1
0
def handle_route_runs(route_id):
    bart_route = bart.get_route_info(route_id)
    runs = [ model.Run.from_bart(bart_route) ]
    return model.List(ObjectField(model.Run))(runs)
Esempio n. 2
0
def handle_route(route_id):
    bart_route = bart.get_route_info(route_id)
    return model.Route.from_bart(bart_route)