Convert workout start date form into htmx driven

This commit is contained in:
Peter Stockings
2022-11-19 23:46:47 +11:00
parent 605d84f8bb
commit 3672951091
3 changed files with 68 additions and 26 deletions

4
db.py
View File

@@ -134,9 +134,9 @@ class DataBase():
ORDER BY
P.PersonId""", [person_id])
def update_workout(self, workout_id, form):
def update_workout_start_date(self, workout_id, start_date):
self.execute('UPDATE Workout SET StartDate=%s WHERE WorkoutId=%s', [
form.get('start-date'), workout_id], commit=True)
start_date, workout_id], commit=True)
def get_person(self, person_id):
topsets = self.execute("""