def velocity_for_n_iteractions(num): from wafwfy.models import Iteration all_velocity = [] current_iteration = Iteration.get_current() for i in range(num): all_velocity.append(Iteration.get_velocity_for_iteration(current_iteration-i-1)) all_velocity.reverse() return jsonify(object=all_velocity)
def velocity_for_iteraction(id): from wafwfy.models import Iteration return jsonify(object=Iteration.get_velocity_for_iteration(id))