diff --git a/backend/running/admin.py b/backend/running/admin.py index 4f52af8..522f2bc 100644 --- a/backend/running/admin.py +++ b/backend/running/admin.py @@ -112,7 +112,7 @@ def changeform_view( duration = request.POST.get(f"duration-{i}") if not pace or not duration: continue - workout["workout_program"].append({"pace": pace, "duration": duration}) + workout["workout_program"].append({"pace": pace, "duration": int(duration)}) total_duration += int(duration) workout["total_duration"] = total_duration copy_values = request.POST.copy()