removing print
This commit is contained in:
@@ -377,7 +377,6 @@ def add_workouts_plannedsession(ws,ps,r):
|
|||||||
|
|
||||||
# start adding sessions
|
# start adding sessions
|
||||||
for w in ws:
|
for w in ws:
|
||||||
print(ps.sessiontype)
|
|
||||||
if w.date>=ps.startdate and w.date<=ps.enddate:
|
if w.date>=ps.startdate and w.date<=ps.enddate:
|
||||||
w.plannedsession = ps
|
w.plannedsession = ps
|
||||||
w.save()
|
w.save()
|
||||||
@@ -434,7 +433,7 @@ def add_workouts_plannedsession(ws,ps,r):
|
|||||||
|
|
||||||
df = dataprep.getsmallrowdata_db(['time','cumdist'],ids=[w.id])
|
df = dataprep.getsmallrowdata_db(['time','cumdist'],ids=[w.id])
|
||||||
fastest_meters = datautils.getfastest(df,ps.sessionvalue,mode='time')
|
fastest_meters = datautils.getfastest(df,ps.sessionvalue,mode='time')
|
||||||
print(fastest_meters,'aap')
|
|
||||||
if fastest_meters > 0:
|
if fastest_meters > 0:
|
||||||
duration = dt.time(0,ps.sessionvalue)
|
duration = dt.time(0,ps.sessionvalue)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user