Compare commits

...

2 Commits

Author SHA1 Message Date
Gregory Trullemans 6ad7616f02 Bug fix error.
continuous-integration/drone/push Build is passing Details
2022-01-18 09:36:20 +01:00
Gregory Trullemans 1ad8bbad30 Bug fix error. 2022-01-18 09:35:37 +01:00
2 changed files with 7 additions and 3 deletions

View File

@ -11,10 +11,9 @@
<h4 class=""><i class="icon-primary fal fa-laugh-wink"></i> Hi {{ user.username }} !</h4>
</div>
<div class="card-body">
Welcome to Ultron v0.44 <span class="text-muted">(last update : 14-1-2022)</span><br />
Welcome to Ultron v0.45 <span class="text-muted">(last update : 18-1-2022)</span><br />
This application is there to help us manage the gymnasts (evolution, evaluation, routine, scores, ...). It is not perfect so feel free to make improvement proposals, bug reports, … by sending me an <a href="mailto:gregory@flyingacrobaticstrampoline.be">email</a>.<br/>
<br/>
<span class="text-danger"><b>Gelukkig nieuwjaar 2022 en mijn beste wensen!</b></span>
</div>
</div>
</div>

View File

@ -75,7 +75,12 @@ def gymnast_details(request, gymnast_id, tab=None):
nb_known_skill = (
LearnedSkill.objects.filter(gymnast=gymnast_id).distinct("skill").count()
)
percentage_known_skill = (nb_known_skill / nb_skill) * 100
if nb_skill != 0:
percentage_known_skill = (nb_known_skill / nb_skill) * 100
else:
percentage_known_skill = 0
chronos_list = Chrono.objects.filter(gymnast=gymnast_id).order_by("-date")[:10]
straightjump_score = (
Chrono.objects.filter(gymnast=gymnast_id)