Commit c7fde194 authored by Lysander Trischler's avatar Lysander Trischler

Reduce time delta of suitable GPX files to ±1 day

parent 929914eb
......@@ -182,7 +182,7 @@ if __name__ == "__main__":
FROM gpx_files INNER JOIN exercises ON gpx_files.exercise_id = exercises.id
WHERE %s <= gpx_files.start AND gpx_files.end <= %s
ORDER BY gpx_files.start ASC
""", exercise.start - datetime.timedelta(days=3), exercise.end + datetime.timedelta(days=3))]
""", exercise.start - datetime.timedelta(days=1), exercise.end + datetime.timedelta(days=1))]
class GPXFile(tornado.database.Row):
......
......@@ -68,7 +68,7 @@
</p>
</fieldset>
{% else %}
<p>Es stehen keine bestehenden GPS-Trajektorien aus dem ungefähren Übungszeitraum (±3 Tage) zur Verfügung.</p>
<p>Es stehen keine bestehenden GPS-Trajektorien aus dem ungefähren Übungszeitraum (±1 Tage) zur Verfügung.</p>
{% end %}
</form>
</section>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment