Skip to content

Commit

Permalink
Nb d'attribution sans les bracelets transférés
Browse files Browse the repository at this point in the history
  • Loading branch information
amandine-sahl committed May 13, 2024
1 parent e06dd5e commit bfebe46
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/modules/oeasc/chasse/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,12 @@ def get_attribution_result(params):

return {
"nb_realisation": res[1],
"nb_attribution": res[0],
"nb_attribution": res[0] - res[3], # Suppression des bracelets transférés
"transfert_zc": res[2],
"transfert_zi": res[3],
"taux_realisation": 0 if not res[1] else round(res[1] / res[0] * 100),
"taux_realisation": (
0 if not res[1] else round(res[1] / (res[0] - res[3]) * 100)
),
}


Expand Down

0 comments on commit bfebe46

Please sign in to comment.