small improvements
This commit is contained in:
@@ -207,6 +207,9 @@ def garmin_workouts_from_details(activities):
|
|||||||
rowdata = rowingdata(df=df)
|
rowdata = rowingdata(df=df)
|
||||||
rowdata.write_csv(w.csvfilename,gzip=True)
|
rowdata.write_csv(w.csvfilename,gzip=True)
|
||||||
data = dataprep.dataprep(rowdata.df,id=w.id)
|
data = dataprep.dataprep(rowdata.df,id=w.id)
|
||||||
|
summary = rowdata.allstats()
|
||||||
|
w.summary=summary
|
||||||
|
w.save()
|
||||||
except Rower.DoesNotExist:
|
except Rower.DoesNotExist:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
@@ -1009,6 +1009,7 @@ def workout_stravaimport_view(request,message="",userid=0):
|
|||||||
return HttpResponse(res)
|
return HttpResponse(res)
|
||||||
|
|
||||||
# For push notifications from Garmin
|
# For push notifications from Garmin
|
||||||
|
@csrf_exempt
|
||||||
def garmin_summaries_view(request):
|
def garmin_summaries_view(request):
|
||||||
if request.method != 'POST':
|
if request.method != 'POST':
|
||||||
raise Http404("Not allowed")
|
raise Http404("Not allowed")
|
||||||
@@ -1023,6 +1024,7 @@ def garmin_summaries_view(request):
|
|||||||
|
|
||||||
return HttpResponse(status=400)
|
return HttpResponse(status=400)
|
||||||
|
|
||||||
|
@csrf_exempt
|
||||||
def garmin_details_view(request):
|
def garmin_details_view(request):
|
||||||
if request.method != 'POST':
|
if request.method != 'POST':
|
||||||
raise Http404("not allowed")
|
raise Http404("not allowed")
|
||||||
|
|||||||
Reference in New Issue
Block a user