fix
This commit is contained in:
@@ -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':
|
||||
|
||||
Reference in New Issue
Block a user