Skip to content

Commit

Permalink
fix type duration
Browse files Browse the repository at this point in the history
  • Loading branch information
NECROshizo committed Apr 6, 2024
1 parent 8fd9dcb commit 2b3cd16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/running/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 2b3cd16

Please sign in to comment.