adding resample function
This commit is contained in:
@@ -285,6 +285,12 @@
|
||||
<a href="/rowers/workout/{{ workout.id|encode }}/data/">
|
||||
<i class="fal fa-table fa-fw"></i> Explore Raw Data
|
||||
</a>
|
||||
</li>
|
||||
<li id="resample-view">
|
||||
<a href="/rowers/workout/{{ workout.id|encode }}/resample/">
|
||||
<i class="fal fa-ruler-horizontal fa-fw"></i> Resample to 1s
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="has-children" id="advanced">
|
||||
|
||||
30
rowers/templates/workout_resample.html
Normal file
30
rowers/templates/workout_resample.html
Normal file
@@ -0,0 +1,30 @@
|
||||
{% extends "newbase.html" %}
|
||||
{% load static %}
|
||||
{% load rowerfilters %}
|
||||
|
||||
{% block title %}Workout Data Resample{% endblock %}
|
||||
|
||||
{% block main %}
|
||||
<h1>Workout Data Resample for {{ workout.name }}</h1>
|
||||
|
||||
<ul class="main-content">
|
||||
<li class="grid_4">
|
||||
<p>This functionality resamples the data to 1 second intervals. This can be useful in
|
||||
case there are gaps larger than 30 seconds in the data, which prevent the creation
|
||||
of a correct CP chart.
|
||||
</p>
|
||||
<p>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
{{ form.as_table }}
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Submit">
|
||||
</form>
|
||||
</p>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block sidebar %}
|
||||
{% include 'menu_workout.html' %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user