bug fixes
This commit is contained in:
@@ -175,6 +175,9 @@ def get_nk_intervalstats(workoutdata, strokedata):
|
||||
spm = interval['avgStrokeRate']
|
||||
dps = interval['distStrokeGps']
|
||||
|
||||
if pwr is None:
|
||||
pwr = 0
|
||||
|
||||
stri += "{i:0>2}{sep}{sdist:0>5}{sep}{split}{sep}{space}{sep} {pwr:0>3} {sep}".format(
|
||||
i=i + 1,
|
||||
sdist=int(float(sdist)),
|
||||
|
||||
@@ -2163,7 +2163,10 @@ def handle_sendemail_hard(workoutid, useremail,
|
||||
debug=False, **kwargs):
|
||||
|
||||
btvalues = pd.read_json(btvalues)
|
||||
btvalues.sort_values('delta', axis=0, inplace=True)
|
||||
try:
|
||||
btvalues.sort_values('delta', axis=0, inplace=True)
|
||||
except KeyError:
|
||||
return 0
|
||||
|
||||
tablevalues = [
|
||||
{'delta': t.delta,
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
Reference in New Issue
Block a user