Private
Public Access
1
0
This commit is contained in:
Sander Roosendaal
2017-12-01 09:56:15 +01:00
parent b0ca9418e5
commit 519effd8c2
2 changed files with 19 additions and 12 deletions

View File

@@ -1557,7 +1557,6 @@ def getsmallrowdata_db(columns, ids=[], doclean=True, workstrokesonly=True):
# This doesn't work because sometimes data are duplicated at save
cdata2 = savgol_filter(cdata.values,windowsize,3)
print len(cdata),len(cdata2),'mies'
data[c] = cdata2
except KeyError:
data[c] = 0
@@ -1637,14 +1636,14 @@ def read_cols_df_sql(ids, columns, convertnewtons=True):
extracols = []
columns2 = list(columns)
for c in columns:
if not c in axx:
columns.remove(c)
columns2.remove(c)
extracols.append(c)
columns = list(columns) + ['distance', 'spm', 'workoutid']
columns = list(columns2) + ['distance', 'spm', 'workoutid']
columns = [x for x in columns if x != 'None']
columns = list(set(columns))
cls = ''