summaryrefslogtreecommitdiff
path: root/tools/excel_import.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/excel_import.py')
-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 (?, ?, ?)",
(