{% extends 'base.html' %} {% block content %}

{% block title %} Les sports proposés au Lycée {% endblock %}




{% for sport in sports %}

{{ sport['nom'] }}

Pratiqué {{ data[sport['id']]['activityLen'] }} séances.

Temps les plus courts :


    {% for act in data[sport['id']]['shortestTime'][:3] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% if act['activityDistance'] < 1000 %} {{ act['activityDistance'] }} m {% else %} {{ act['activityDistance'] // 1000 }},{{"%02d" % ((act['activityDistance'] // 10) % 100) }} km {% endif %} pendant {% if act['activityDuree'] >= 3600 %} {{ (act['activityDuree'] // 60) // 60 }} heure{% if (act['activityDuree'] // 60) // 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] >= 60 and (act['activityDuree'] // 60) % 60 != 0 %} {{ (act['activityDuree'] // 60) % 60 }} minute{% if (act['activityDuree'] // 60) % 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] > 0%} {{ act['activityDuree'] % 60 }} seconde{% if act['activityDuree'] % 60 > 1 %}s{% endif %} {% endif %} , soit une vitesse moyenne de {{ act['activitySpeed'] }} km/h.
  2. {% endfor %}

Temps les plus longs :


    {% for act in data[sport['id']]['shortestTime'][-3:][::-1] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% if act['activityDistance'] < 1000 %} {{ act['activityDistance'] }} m {% else %} {{ act['activityDistance'] // 1000 }},{{"%02d" % ((act['activityDistance'] // 10) % 100) }} km {% endif %} pendant {% if act['activityDuree'] >= 3600 %} {{ (act['activityDuree'] // 60) // 60 }} heure{% if (act['activityDuree'] // 60) // 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] >= 60 and (act['activityDuree'] // 60) % 60 != 0 %} {{ (act['activityDuree'] // 60) % 60 }} minute{% if (act['activityDuree'] // 60) % 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] > 0%} {{ act['activityDuree'] % 60 }} seconde{% if act['activityDuree'] % 60 > 1 %}s{% endif %} {% endif %} , soit une vitesse moyenne de {{ act['activitySpeed'] }} km/h.
  2. {% endfor %}

Distances les plus courtes :


    {% for act in data[sport['id']]['shortestDistance'][:3] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% if act['activityDistance'] < 1000 %} {{ act['activityDistance'] }} m {% else %} {{ act['activityDistance'] // 1000 }},{{"%02d" % ((act['activityDistance'] // 10) % 100) }} km {% endif %} pendant {% if act['activityDuree'] >= 3600 %} {{ (act['activityDuree'] // 60) // 60 }} heure{% if (act['activityDuree'] // 60) // 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] >= 60 and (act['activityDuree'] // 60) % 60 != 0 %} {{ (act['activityDuree'] // 60) % 60 }} minute{% if (act['activityDuree'] // 60) % 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] > 0%} {{ act['activityDuree'] % 60 }} seconde{% if act['activityDuree'] % 60 > 1 %}s{% endif %} {% endif %} , soit une vitesse moyenne de {{ act['activitySpeed'] }} km/h.
  2. {% endfor %}

Distances les plus longues :


    {% for act in data[sport['id']]['shortestDistance'][-3:][::-1] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% if act['activityDistance'] < 1000 %} {{ act['activityDistance'] }} m {% else %} {{ act['activityDistance'] // 1000 }},{{"%02d" % ((act['activityDistance'] // 10) % 100) }} km {% endif %} pendant {% if act['activityDuree'] >= 3600 %} {{ (act['activityDuree'] // 60) // 60 }} heure{% if (act['activityDuree'] // 60) // 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] >= 60 and (act['activityDuree'] // 60) % 60 != 0 %} {{ (act['activityDuree'] // 60) % 60 }} minute{% if (act['activityDuree'] // 60) % 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] > 0%} {{ act['activityDuree'] % 60 }} seconde{% if act['activityDuree'] % 60 > 1 %}s{% endif %} {% endif %} , soit une vitesse moyenne de {{ act['activitySpeed'] }} km/h.
  2. {% endfor %}

Allures les plus lentes :


    {% for act in data[sport['id']]['slowest'][:3] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% if act['activityDistance'] < 1000 %} {{ act['activityDistance'] }} m {% else %} {{ act['activityDistance'] // 1000 }},{{"%02d" % ((act['activityDistance'] // 10) % 100) }} km {% endif %} pendant {% if act['activityDuree'] >= 3600 %} {{ (act['activityDuree'] // 60) // 60 }} heure{% if (act['activityDuree'] // 60) // 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] >= 60 and (act['activityDuree'] // 60) % 60 != 0 %} {{ (act['activityDuree'] // 60) % 60 }} minute{% if (act['activityDuree'] // 60) % 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] > 0%} {{ act['activityDuree'] % 60 }} seconde{% if act['activityDuree'] % 60 > 1 %}s{% endif %} {% endif %} , soit une vitesse moyenne de {{ act['activitySpeed'] }} km/h.
  2. {% endfor %}

Allures les plus rapides :


    {% for act in data[sport['id']]['slowest'][-3:][::-1] %}
  1. {{ act['userPrenom'] }} {{ act['userNom'] }} {% if act['activityDistance'] < 1000 %} {{ act['activityDistance'] }} m {% else %} {{ act['activityDistance'] // 1000 }},{{"%02d" % ((act['activityDistance'] // 10) % 100) }} km {% endif %} pendant {% if act['activityDuree'] >= 3600 %} {{ (act['activityDuree'] // 60) // 60 }} heure{% if (act['activityDuree'] // 60) // 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] >= 60 and (act['activityDuree'] // 60) % 60 != 0 %} {{ (act['activityDuree'] // 60) % 60 }} minute{% if (act['activityDuree'] // 60) % 60 > 1 %}s{% endif %} {% endif %} {% if act['activityDuree'] > 0%} {{ act['activityDuree'] % 60 }} seconde{% if act['activityDuree'] % 60 > 1 %}s{% endif %} {% endif %} , soit une vitesse moyenne de {{ act['activitySpeed'] }} km/h.
  2. {% endfor %}
Pratiquants ({{ data[sport['id']]['usersLen'] }} élèves) :
{% endfor %} {% endblock %}