[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2024-01-03 11:51:25 +00:00
parent aae2164cb2
commit 9c0424c75b

View File

@ -40,9 +40,9 @@ def calculate_age(unix_timestamp: float) -> str:
# Calculate the age
current_date = datetime.now(tz=UTC)
age = (
current_date.year -
birth_date.year -
((current_date.month, current_date.day) < (birth_date.month, birth_date.day))
current_date.year
- birth_date.year
- ((current_date.month, current_date.day) < (birth_date.month, birth_date.day))
)
return str(age)