Private
Public Access
1
0

adding fitscore

This commit is contained in:
Sander Roosendaal
2020-11-25 18:35:40 +01:00
parent 5f683d1e2e
commit cace69a63d
4 changed files with 86 additions and 9 deletions

View File

@@ -323,8 +323,9 @@ def myqueue(queue,function,*args,**kwargs):
from datetime import date
def calculate_age(born):
today = date.today()
def calculate_age(born,today=None):
if not today:
today = date.today()
if born:
return today.year - born.year - ((today.month, today.day) < (born.month, born.day))
else: