summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorstilbruch <stilbruch@protonmail.com>2022-05-16 15:03:48 -0500
committerstilbruch <stilbruch@protonmail.com>2022-05-16 15:03:48 -0500
commitd2c0dcf06d632389d2c451b1d9d37735291d7e62 (patch)
treea1676dc06867caa17b94f8c7999451685c22096a /tools
parentbbb9ecc9810a8d4a68f5400317fde266412fc8ac (diff)
downloadStrengthy-d2c0dcf06d632389d2c451b1d9d37735291d7e62.tar.xz
Strengthy-d2c0dcf06d632389d2c451b1d9d37735291d7e62.zip
Fix record.js checking bug
Diffstat (limited to 'tools')
-rwxr-xr-xtools/excel_import.py3
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 (?, ?, ?)",
(