Skip to content

Commit

Permalink
En Diciembre, todos progresan de grupo
Browse files Browse the repository at this point in the history
  • Loading branch information
iranzo committed Dec 27, 2024
1 parent 7634a5b commit d43e6dc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion 4-auto-categoria.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@
# Our member had a match with the born year
targetcategorias.append(int(categoria["idModalitat"]))

edad = today.year - year - ((today.month, today.day) < (month, day))
fechadia = today.day

if today.month == 12:
# Los que cumplen a final de diciembre... se les suma el año antes
fechadia = 31

edad = today.year - year - ((today.month, fechadia) < (month, day))

# Add target category for +13/+15
if edad in range(13, 15):
Expand Down

0 comments on commit d43e6dc

Please sign in to comment.