bug fixes
This commit is contained in:
@@ -1061,23 +1061,6 @@ def fetchcp_new(rower,workouts):
|
|||||||
|
|
||||||
|
|
||||||
df = df.sort_values(['delta']).reset_index()
|
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
|
return df['delta'],df['cp'],0
|
||||||
|
|
||||||
|
|||||||
@@ -2988,7 +2988,7 @@ def auto_delete_file_on_delete(sender, instance, **kwargs):
|
|||||||
# remove parquet file
|
# remove parquet file
|
||||||
try:
|
try:
|
||||||
dirname = 'media/cpdata_{id}.parquet.gz'.format(id=instance.id)
|
dirname = 'media/cpdata_{id}.parquet.gz'.format(id=instance.id)
|
||||||
shutil.rmtree(dirname)
|
os.remove(dirname)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
{% load staticfiles %}
|
{% load staticfiles %}
|
||||||
{% load rowerfilters %}
|
{% load rowerfilters %}
|
||||||
|
|
||||||
{% block title %}Workouts{% endblock %}
|
{% block title %}Analysis{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Reference in New Issue
Block a user