diff options
| author | stilbruch <stilbruch@protonmail.com> | 2022-05-16 15:03:48 -0500 |
|---|---|---|
| committer | stilbruch <stilbruch@protonmail.com> | 2022-05-16 15:03:48 -0500 |
| commit | d2c0dcf06d632389d2c451b1d9d37735291d7e62 (patch) | |
| tree | a1676dc06867caa17b94f8c7999451685c22096a /tools | |
| parent | bbb9ecc9810a8d4a68f5400317fde266412fc8ac (diff) | |
| download | Strengthy-d2c0dcf06d632389d2c451b1d9d37735291d7e62.tar.xz Strengthy-d2c0dcf06d632389d2c451b1d9d37735291d7e62.zip | |
Fix record.js checking bug
Diffstat (limited to 'tools')
| -rwxr-xr-x | tools/excel_import.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/excel_import.py b/tools/excel_import.py index 680c2fa..49e25ba 100755 --- a/tools/excel_import.py +++ b/tools/excel_import.py @@ -64,6 +64,9 @@ exercise_ids = {} def insert_workout(cur, workout): + if len(workout["sets"]) == 0: + return + cur.execute( "INSERT INTO workout_records(finished, user_id, workout_id) VALUES (?, ?, ?)", ( |
