fix(cat): age map
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m55s
All checks were successful
Deploy Production Server / if_merged (pull_request) Successful in 6m55s
This commit is contained in:
@@ -48,19 +48,19 @@ public class Utils {
|
||||
int birthYear = toCalendar(birth_date).get(Calendar.YEAR);
|
||||
|
||||
int diff = currentSaison - birthYear;
|
||||
if (diff < 7) {
|
||||
if (diff < 6) {
|
||||
return Categorie.SUPER_MINI;
|
||||
} else if (diff < 9) {
|
||||
} else if (diff < 8) {
|
||||
return Categorie.MINI_POUSSIN;
|
||||
} else if (diff < 11) {
|
||||
} else if (diff < 10) {
|
||||
return Categorie.POUSSIN;
|
||||
} else if (diff < 13) {
|
||||
} else if (diff < 12) {
|
||||
return Categorie.BENJAMIN;
|
||||
} else if (diff < 15) {
|
||||
} else if (diff < 14) {
|
||||
return Categorie.MINIME;
|
||||
} else if (diff < 17) {
|
||||
} else if (diff < 16) {
|
||||
return Categorie.CADET;
|
||||
} else if (diff < 19) {
|
||||
} else if (diff < 18) {
|
||||
return Categorie.JUNIOR;
|
||||
} else if (diff < 25) {
|
||||
return Categorie.SENIOR1;
|
||||
|
||||
Reference in New Issue
Block a user