From ab08c19e6a095e3d5914bc4af9d01a62afa7ede8 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sat, 19 Nov 2022 20:36:03 +1100 Subject: [PATCH] Rename get_topset function --- app.py | 2 +- db.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index d50631d..0f6106f 100644 --- a/app.py +++ b/app.py @@ -66,7 +66,7 @@ def get_topset(person_id, workout_id, topset_id): return redirect(url_for('get_workout', person_id=person_id, workout_id=workout_id)) - topset = db.get_topset_final(person_id, workout_id, topset_id) + topset = db.get_topset(person_id, workout_id, topset_id) return render_template('topset.html', topset=topset) diff --git a/db.py b/db.py index 21818bc..7653cae 100644 --- a/db.py +++ b/db.py @@ -182,7 +182,7 @@ class DataBase(): 'TopSets': [{"TopSetId": t['TopSetId'], "ExerciseId": t['ExerciseId'], "ExerciseName": t['ExerciseName'], "Weight": t['Weight'], "Repetitions": t['Repetitions']} for t in topsets if t['TopSetId'] is not None] } - def get_topset_final(self, person_id, workout_id, topset_id): + def get_topset(self, person_id, workout_id, topset_id): topset = self.execute(""" SELECT P.PersonId AS "PersonId",