Private
Public Access
1
0

bug fixes

This commit is contained in:
Sander Roosendaal
2020-10-12 18:42:43 +02:00
parent 60a68f5611
commit cdc6b57c97
3 changed files with 2 additions and 19 deletions

View File

@@ -1061,23 +1061,6 @@ def fetchcp_new(rower,workouts):
df = df.sort_values(['delta']).reset_index()
#dindex = df['id'].shift(1)-df['id']
#dpowerplus = df['cp'].shift(1)-df['cp']
#dpowermin = df['cp'].shift(-1)-df['cp']
#badrows = []
#badid = 0
#for index,row in df.iterrows():
# if dindex[index] != 0 and dpowermin[index] > 0:
# badrows.append(index)
# badid = row['id']
# elif row['id'] == badid:
# badrows.append(index)
# else:
# badid = 0
#df = df.drop(index = badrows)
return df['delta'],df['cp'],0

View File

@@ -2988,7 +2988,7 @@ def auto_delete_file_on_delete(sender, instance, **kwargs):
# remove parquet file
try:
dirname = 'media/cpdata_{id}.parquet.gz'.format(id=instance.id)
shutil.rmtree(dirname)
os.remove(dirname)
except FileNotFoundError:
pass

View File

@@ -2,7 +2,7 @@
{% load staticfiles %}
{% load rowerfilters %}
{% block title %}Workouts{% endblock %}
{% block title %}Analysis{% endblock %}
{% block main %}
<script>