Players’ age
-
Hi team,
I’ve realized that Players’ age, when calculated from Date of Birth in the get_age() function, is an integer, not a decimal. This means that when ordering a Player List on Age (ascending), it may happen that a player born in December appears first that one born in January.
I have tweaked the get_age() function to return a decimal and use the floor function when in Player Details or Player List the age is shown.In my opinion, in upcoming updates, you should consider to implement this adjustment. It implies just a few simple lines of code.
Thanks. Good work!
Marc
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Players’ age’ is closed to new replies.