Merge tag 'v1.01' into develop
v1.01
This commit is contained in:
@@ -295,15 +295,30 @@ def save_workout_database(f2,r,dosmooth=True,workouttype='rower',
|
||||
totaltime = totaltime+row.df.ix[0,' ElapsedTime (sec)']
|
||||
|
||||
|
||||
|
||||
|
||||
hours = int(totaltime/3600.)
|
||||
if hours>23:
|
||||
message = 'Warning: The workout duration was longer than 23 hours'
|
||||
message = 'Warning: The workout duration was longer than 23 hours. '
|
||||
hours = 23
|
||||
|
||||
minutes = int((totaltime - 3600.*hours)/60.)
|
||||
if minutes>59:
|
||||
minutes = 59
|
||||
if not message:
|
||||
message = 'Warning: there is something wrong with the workout duration'
|
||||
|
||||
seconds = int(totaltime - 3600.*hours - 60.*minutes)
|
||||
if seconds > 59:
|
||||
seconds = 59
|
||||
if not message:
|
||||
message = 'Warning: there is something wrong with the workout duration'
|
||||
|
||||
tenths = int(10*(totaltime - 3600.*hours - 60.*minutes - seconds))
|
||||
if tenths > 9:
|
||||
tenths = 9
|
||||
if not message:
|
||||
message = 'Warning: there is something wrong with the workout duration'
|
||||
|
||||
duration = "%s:%s:%s.%s" % (hours,minutes,seconds,tenths)
|
||||
|
||||
if dosummary:
|
||||
|
||||
@@ -4882,7 +4882,10 @@ def workout_summary_edit_view(request,id,message="",successmessage=""
|
||||
itime,idist,itype = rowdata.intervalstats_values()
|
||||
nrintervals = len(idist)
|
||||
row.summary = intervalstats
|
||||
#intervalstats = rowdata.allstats()
|
||||
#intervalstats = rowdata.allstats()
|
||||
row.notes += u'{n} \n {s}'.format(
|
||||
n = row.notes,
|
||||
s = s
|
||||
)
|
||||
row.save()
|
||||
rowdata.write_csv(f1,gzip=True)
|
||||
|
||||
Reference in New Issue
Block a user