From d2c0dcf06d632389d2c451b1d9d37735291d7e62 Mon Sep 17 00:00:00 2001 From: stilbruch Date: Mon, 16 May 2022 15:03:48 -0500 Subject: Fix record.js checking bug --- tools/excel_import.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tools') 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 (?, ?, ?)", ( -- cgit v1.2.3