fixing c2 export from rp3
This commit is contained in:
@@ -271,6 +271,13 @@ def strokedatajson_v3(request):
|
||||
|
||||
startdatetime = pendulum.parse(startdatetime)
|
||||
|
||||
dologging('apilog.log',workouttype)
|
||||
dologging('apilog.log',boattype)
|
||||
dologging('apilog.log',notes)
|
||||
dologging('apilog.log',title)
|
||||
dologging('apilog.log',totalDistance)
|
||||
dologging('apilog.log',elapsedTime)
|
||||
|
||||
df = pd.DataFrame()
|
||||
try:
|
||||
strokes = request.data['strokes']
|
||||
@@ -298,7 +305,10 @@ def strokedatajson_v3(request):
|
||||
_ = data.to_csv(csvfilename, index_label='index', compression='gzip')
|
||||
|
||||
duration = datetime.time(0,0,1)
|
||||
w = Workout(user=request.user.rower,date=timezone.now().date(),duration=duration)
|
||||
w = Workout(
|
||||
user=request.user.rower,
|
||||
date=timezone.now().date(),
|
||||
duration=duration)
|
||||
w.save()
|
||||
|
||||
uploadoptions = {
|
||||
|
||||
Reference in New Issue
Block a user