Merge branch 'release/v22.1.27'
This commit is contained in:
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
1
rowers/views/.#apiviews.py
Symbolic link
1
rowers/views/.#apiviews.py
Symbolic link
@@ -0,0 +1 @@
|
|||||||
|
sander@rowsandall-2.3950:1723351739
|
||||||
@@ -484,13 +484,18 @@ def strokedata_tcx(request):
|
|||||||
with open(tcxfilename, 'w', encoding='utf-8') as xml_file:
|
with open(tcxfilename, 'w', encoding='utf-8') as xml_file:
|
||||||
xml_file.write(xml_string)
|
xml_file.write(xml_string)
|
||||||
|
|
||||||
|
|
||||||
duration = totaltime_sec_to_string(total_duration)
|
duration = totaltime_sec_to_string(total_duration)
|
||||||
|
try:
|
||||||
startdatetime = arrow.get(start_time_str)
|
startdatetime = arrow.get(start_time_str)
|
||||||
#startdatetime = dt.strptime(start_time_str, "%Y-%m-%dT%H:%M:%S%z")
|
#startdatetime = dt.strptime(start_time_str, "%Y-%m-%dT%H:%M:%S%z")
|
||||||
startdate = startdatetime.date()
|
startdate = startdatetime.date()
|
||||||
partofday = part_of_day(startdatetime.hour)
|
partofday = part_of_day(startdatetime.hour)
|
||||||
title = '{partofday} water'.format(partofday=partofday)
|
title = '{partofday} water'.format(partofday=partofday)
|
||||||
|
except Exception as e:
|
||||||
|
dologging('apilog.log','TCX error to get time')
|
||||||
|
dologging('apilog.log',e)
|
||||||
|
_ = myqueue(queuehigh, handle_sendemail_unrecognized, tcxfilename, "tcx parser")
|
||||||
|
|
||||||
|
|
||||||
w = Workout(user=request.user.rower,
|
w = Workout(user=request.user.rower,
|
||||||
date=startdate,
|
date=startdate,
|
||||||
|
|||||||
Reference in New Issue
Block a user