Migrate data and improve ui

This commit is contained in:
Peter Stockings
2022-07-23 18:59:21 +10:00
parent 2a8b72a881
commit c16922be36
7 changed files with 130 additions and 117 deletions

2
db.py
View File

@@ -41,6 +41,8 @@ class DataBase():
return topset
def delete_workout(self, workout_id):
self.execute('DELETE FROM TopSet WHERE WorkoutId=?',
[workout_id], commit=True)
self.execute('DELETE FROM Workout WHERE WorkoutId=?',
[workout_id], commit=True)