예제 #1
0
파일: views.py 프로젝트: trenta3dev/wafwfy
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)
예제 #2
0
파일: views.py 프로젝트: trenta3dev/wafwfy
def velocity_for_iteraction(id):
    from wafwfy.models import Iteration
    return jsonify(object=Iteration.get_velocity_for_iteration(id))