Private
Public Access
1
0

fixing tests

This commit is contained in:
2024-05-26 14:51:21 +02:00
parent 09ee59a58e
commit ad372d8f92
8 changed files with 23 additions and 11 deletions

View File

@@ -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']