bug fix
This commit is contained in:
@@ -1905,7 +1905,10 @@ def testdata(time, distance, pace, spm):
|
|||||||
def getrowdata_db(id=0, doclean=False, convertnewtons=True,
|
def getrowdata_db(id=0, doclean=False, convertnewtons=True,
|
||||||
checkefficiency=True):
|
checkefficiency=True):
|
||||||
data = read_df_sql(id)
|
data = read_df_sql(id)
|
||||||
data['deltat'] = data['time'].diff()
|
try:
|
||||||
|
data['deltat'] = data['time'].diff()
|
||||||
|
except KeyError:
|
||||||
|
data = pd.DataFrame()
|
||||||
|
|
||||||
if data.empty:
|
if data.empty:
|
||||||
rowdata, row = getrowdata(id=id)
|
rowdata, row = getrowdata(id=id)
|
||||||
|
|||||||
Reference in New Issue
Block a user