fixing tests
This commit is contained in:
@@ -3406,12 +3406,16 @@ def workout_data_view(request, id=0):
|
||||
|
||||
columns = datadf.columns.values
|
||||
|
||||
to_be_dropped = [
|
||||
to_be_dropped_all = [
|
||||
'id', 'time', 'hr_an', 'hr_at', 'hr_bottom', 'hr_max',
|
||||
'hr_tr', 'hr_ut1', 'hr_ut2', 'x_right',
|
||||
]
|
||||
|
||||
to_be_dropped = [c for c in to_be_dropped if c in columns]
|
||||
to_be_dropped = []
|
||||
|
||||
for c in to_be_dropped_all:
|
||||
if c in columns:
|
||||
to_be_dropped.append(c)
|
||||
|
||||
datadf.drop(labels=to_be_dropped, inplace=True, axis=1)
|
||||
|
||||
@@ -3854,6 +3858,8 @@ def workout_flexchart3_view(request, *args, **kwargs):
|
||||
favoritenr = 0
|
||||
except AssertionError:
|
||||
favoritenr = 0
|
||||
except ValueError:
|
||||
favoritenr = 0
|
||||
|
||||
if 'xparam' in kwargs:
|
||||
xparam = kwargs['xparam']
|
||||
|
||||
Reference in New Issue
Block a user