Private
Public Access
1
0

fixing c2 export from rp3

This commit is contained in:
Sander Roosendaal
2023-02-01 19:12:07 +01:00
parent 54d4ed633f
commit 54b57d51bf
4 changed files with 20 additions and 7 deletions

View File

@@ -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 = {