예제 #1
0
파일: main.py 프로젝트: jlcordeiro/my531
def orm():
    """ Function called when the one rep max calculator is loaded. """
    if request.method == 'GET':
        return render_template('orm.html')

    guess = guess_orm(float(request.form['weight']), int(request.form['reps']))
    return render_template('orm.html', guessed_orm=guess)
예제 #2
0
파일: models.py 프로젝트: jlcordeiro/my531
 def orm_projection(self):
     value = guess_orm(self.set3_weight, self.set3_reps)
     return approximate_weight(value, 10)