fix
This commit is contained in:
@@ -1270,7 +1270,7 @@ def get_startdatetime_from_c2data(data):
|
|||||||
except KeyError:
|
except KeyError:
|
||||||
rest_time = 0
|
rest_time = 0
|
||||||
totaltime = totaltime+rest_time
|
totaltime = totaltime+rest_time
|
||||||
|
|
||||||
duration = totaltime_sec_to_string(totaltime)
|
duration = totaltime_sec_to_string(totaltime)
|
||||||
starttimeunix = arrow.get(startdatetime).timestamp()-totaltime
|
starttimeunix = arrow.get(startdatetime).timestamp()-totaltime
|
||||||
startdatetime = arrow.get(starttimeunix)
|
startdatetime = arrow.get(starttimeunix)
|
||||||
|
|||||||
@@ -15,15 +15,6 @@ def default(o): # pragma: no cover
|
|||||||
|
|
||||||
from rowsandall_app.settings import NK_OAUTH_LOCATION
|
from rowsandall_app.settings import NK_OAUTH_LOCATION
|
||||||
|
|
||||||
def dologging(s):
|
|
||||||
tstamp = time.localtime()
|
|
||||||
timestamp = time.strftime('%b-%d-%Y %H:%M:%S', tstamp)
|
|
||||||
with open('debuglog.log','a') as f:
|
|
||||||
f.write('\n')
|
|
||||||
f.write(timestamp)
|
|
||||||
f.write(' ')
|
|
||||||
f.write(s)
|
|
||||||
|
|
||||||
# Send workout to TP
|
# Send workout to TP
|
||||||
@permission_required('workout.change_workout',fn=get_workout_by_opaqueid,raise_exception=True)
|
@permission_required('workout.change_workout',fn=get_workout_by_opaqueid,raise_exception=True)
|
||||||
def workout_tp_upload_view(request,id=0):
|
def workout_tp_upload_view(request,id=0):
|
||||||
|
|||||||
Reference in New Issue
Block a user