Private
Public Access
1
0

first non working attemt with Chart.js

This commit is contained in:
Sander Roosendaal
2019-11-17 09:26:39 +01:00
parent 9ddfcb20d6
commit 30d4b894a1
4 changed files with 56 additions and 340 deletions

View File

@@ -202,10 +202,8 @@ def workout_video_create_view(request,id=0):
if hascoordinates:
mapscript, mapdiv = leaflet_chart_video(data['latitude'],data['longitude'],
w.name)
js_res = ''
css_res = ''
else:
mapscript, mapdiv,js_res,css_res = interactive_chart(w.id,promember=1,timepos=78)
mapscript, mapdiv = interactive_chart_video(w.id)
breadcrumbs = [
{
@@ -225,10 +223,7 @@ def workout_video_create_view(request,id=0):
analysis = {'delay':delay}
if hascoordinates:
template = 'embedded_video.html'
else:
template = 'embedded_video_ote.html'
template = 'embedded_video.html'
return render(request,
template,
@@ -246,8 +241,6 @@ def workout_video_create_view(request,id=0):
'maxtime':maxtime,
'metrics':metrics,
'locked': False,
'js_res': js_res,
'css_res': css_res
})
# Show the EMpower Oarlock generated Stroke Profile