|
@@ -121,7 +121,7 @@ def calculate_age(date):
|
|
birthday_date = date.replace(year=now.year + 1)
|
|
birthday_date = date.replace(year=now.year + 1)
|
|
|
|
|
|
delta = birthday_date - now
|
|
delta = birthday_date - now
|
|
- age = (birthday_date - birthday.date).days // 365
|
|
|
|
|
|
+ age = (birthday_date - date).days // 365
|
|
age_now = age - 1
|
|
age_now = age - 1
|
|
|
|
|
|
return Age(
|
|
return Age(
|