diff --git a/jarvis/followup/views.py b/jarvis/followup/views.py index 3661c9c..53e3691 100644 --- a/jarvis/followup/views.py +++ b/jarvis/followup/views.py @@ -1384,6 +1384,10 @@ def intensity_create_or_update(request, intensity_id=None, gymnast_id=None): difficulty = form.cleaned_data["difficulty"] quantity_of_skill = form.cleaned_data["quantity_of_skill"] number_of_passes = form.cleaned_data["number_of_passes"] + skill_by_passe = quantity_of_skill / number_of_passes + diff_by_skill = difficulty / quantity_of_skill + diff_by_passe = difficulty / number_of_passes + time_by_passe = time / number_of_passes gymnast = Gymnast.objects.get(pk=form.cleaned_data["gymnast"].id) functionality = ContentType.objects.get(model="intensity") for notification in gymnast.notifications.filter( @@ -1398,7 +1402,21 @@ def intensity_create_or_update(request, intensity_id=None, gymnast_id=None): receiver, fail_silently=False, html_message=f"""

Bonjour,

-

{gymnast} a encodé une nouvelle intensité (pour le {date.strftime('%d %B %Y')}) : {number_of_passes} passages en {time}min (diff : {difficulty} | # skills : {quantity_of_skill}).


+

{gymnast} a encodé une nouvelle intensité (pour le {date.strftime('%d %B %Y')}) :

+ +

Statistiques :

+ +

Excellente journée

Jarvis

""", )