txlyre hace 2 años
padre
commit
ab5de5cd62
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      utils.py

+ 1 - 1
utils.py

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