Exemple #1
0
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)
Exemple #2
0
 def orm_projection(self):
     value = guess_orm(self.set3_weight, self.set3_reps)
     return approximate_weight(value, 10)