diff --git a/rowers/dataprep.py b/rowers/dataprep.py index 7fa99401..cac18cc6 100644 --- a/rowers/dataprep.py +++ b/rowers/dataprep.py @@ -194,15 +194,18 @@ def get_video_data(w,groups=['basic'],mode='water'): for c in columns: if c != 'time': - if dict(rowingmetrics)[c]['numtype'] == 'integer': - data[c] = df2[c].astype(int).tolist() - else: - data[c] = df2[c].values.tolist() - metrics[c] = { - 'name': dict(rowingmetrics)[c]['verbose_name'], - 'metric': c, - 'unit': '' - } + try: + if dict(rowingmetrics)[c]['numtype'] == 'integer': + data[c] = df2[c].astype(int).tolist() + else: + data[c] = df2[c].values.tolist() + metrics[c] = { + 'name': dict(rowingmetrics)[c]['verbose_name'], + 'metric': c, + 'unit': '' + } + except KeyError: + pass metrics['boatspeed'] = metrics.pop('velo') # metrics['workperstroke'] = metrics.pop('driveenergy') diff --git a/rowers/templates/embedded_video.html b/rowers/templates/embedded_video.html index a865dae7..3105986e 100644 --- a/rowers/templates/embedded_video.html +++ b/rowers/templates/embedded_video.html @@ -31,6 +31,8 @@ width: 100%; /* Width of the outside container */ } + .bold { font-weight: bold; } + /* The slider itself */ .slider { -webkit-appearance: none; /* Override default CSS styles */ @@ -71,7 +73,7 @@
Paste link to you tube video below
Use the slider to locate start point for video on workout map
Playing the video will advance the data in synchonization. Use the regular YouTube @@ -82,10 +84,12 @@
Once you are happy with the alignment, you can save the analysis, and share with other people.
Playing the video will advance the data in synchronization. Use the regular YouTube controls to move around in the video and play it.
{% endif %} +