fix: exercises.py - handle dict rows in fetchone() for INSERT RETURNING
Deploy Development / deploy (push) Successful in 33s
Test Suite / lint-backend (push) Successful in 0s
Test Suite / build-frontend (push) Successful in 6s
Test Suite / playwright-tests (push) Has been cancelled

This commit is contained in:
Lars committed 2026-04-24 15:23:00 +02:00
1 parent e80c8e01e1
commit b617b5a2d8
1 file changed
+2 -1
+2 -1
View File
@@ -401,7 +401,8 @@ def create_exercise(
body.visibility, body.status, profile_id, body.club_id,
)
)
exercise_id = cur.fetchone()[0]
row = cur.fetchone()
exercise_id = row['id'] if isinstance(row, dict) else row[0]
conn.commit()
# M:N Relations zuweisen