From 9c0424c75bf990dc236beb68b5caa5ccb4c9b96a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 3 Jan 2024 11:51:25 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- web_programming/get_top_billionaires.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/web_programming/get_top_billionaires.py b/web_programming/get_top_billionaires.py index 6120742ef..976084e2d 100644 --- a/web_programming/get_top_billionaires.py +++ b/web_programming/get_top_billionaires.py @@ -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)