adding fitscore
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user