Private
Public Access
1
0
This commit is contained in:
2024-08-24 14:23:40 +02:00
parent d8c93759fd
commit 8a79245ba6
2 changed files with 4 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ from json.decoder import JSONDecodeError
import ruptures as rpt
from rowers.courses import getnearestcourses
from pandas.errors import IntCastingNaNError
def default(o): # pragma: no cover
if isinstance(o, numpy.int64):
@@ -3451,7 +3452,7 @@ def workout_data_view(request, id=0):
datadf.loc[:, 'power'] = datadf['power'].astype('int')
datadf.loc[:, 'distance'] = datadf['distance'].astype('int')
datadf.loc[:, 'spm'] = 10*datadf['spm'].astype('int')/10.
except KeyError:
except (KeyError, IntCastingNaNError):
pass
if request.method == 'POST':