Private
Public Access
1
0

changing return status:

This commit is contained in:
2024-12-10 08:02:55 +01:00
parent b818412f61
commit ed3bf03539

View File

@@ -575,7 +575,7 @@ def strokedata_fit(request):
return JsonResponse({
"status": "error",
"message": f"An error occurred while saving the FIT file: {str(e)}"
}, status=500)
}, status=400)
try:
# Parse the FIT file
@@ -585,7 +585,7 @@ def strokedata_fit(request):
return JsonResponse({
"status": "error",
"message": f"An error occurred while parsing the FIT file: {str(e)}"
}, status=500)
}, status=422)
rowdata = rowingdata(df=row.df)