Merge branch 'develop' into feature/intervals.icu
This commit is contained in:
@@ -575,7 +575,7 @@ def strokedata_fit(request):
|
|||||||
return JsonResponse({
|
return JsonResponse({
|
||||||
"status": "error",
|
"status": "error",
|
||||||
"message": f"An error occurred while saving the FIT file: {str(e)}"
|
"message": f"An error occurred while saving the FIT file: {str(e)}"
|
||||||
}, status=500)
|
}, status=400)
|
||||||
|
|
||||||
try:
|
try:
|
||||||
# Parse the FIT file
|
# Parse the FIT file
|
||||||
@@ -585,7 +585,7 @@ def strokedata_fit(request):
|
|||||||
return JsonResponse({
|
return JsonResponse({
|
||||||
"status": "error",
|
"status": "error",
|
||||||
"message": f"An error occurred while parsing the FIT file: {str(e)}"
|
"message": f"An error occurred while parsing the FIT file: {str(e)}"
|
||||||
}, status=500)
|
}, status=422)
|
||||||
|
|
||||||
rowdata = rowingdata(df=row.df)
|
rowdata = rowingdata(df=row.df)
|
||||||
|
|
||||||
@@ -601,6 +601,7 @@ def strokedata_fit(request):
|
|||||||
dologging('apilog.log','FIT error to get time')
|
dologging('apilog.log','FIT error to get time')
|
||||||
dologging('apilog.log',e)
|
dologging('apilog.log',e)
|
||||||
_ = myqueue(queuehigh, handle_sendemail_unrecognized, fit_filename, "fit parser")
|
_ = myqueue(queuehigh, handle_sendemail_unrecognized, fit_filename, "fit parser")
|
||||||
|
return HttpResponse(status=422)
|
||||||
|
|
||||||
w = Workout.objects.create(user=request.user.rower,
|
w = Workout.objects.create(user=request.user.rower,
|
||||||
duration=duration,
|
duration=duration,
|
||||||
|
|||||||
Reference in New Issue
Block a user