Skip to content

Commit 5c76cb4

Browse files
authored
Update get_top_billionaires.py
1 parent fa4d963 commit 5c76cb4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web_programming/get_top_billionaires.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,14 @@
44
"""
55

66
import doctest
7-
from datetime import date, datetime, timedelta, timezone
7+
from datetime import UTC, date, datetime
88

99
import requests
1010
from rich import box
1111
from rich import console as rich_console
1212
from rich import table as rich_table
1313

1414
LIMIT = 10
15-
UTC_OFFSET = timedelta(hours=0)
16-
UTC = timezone(UTC_OFFSET)
1715
TODAY = datetime.now(tz=UTC)
1816
API_URL = (
1917
"https://www.forbes.com/forbesapi/person/rtb/0/position/true.json"
@@ -98,5 +96,7 @@ def display_billionaires(forbes_billionaires: list[dict[str, int | str]]) -> Non
9896

9997

10098
if __name__ == "__main__":
101-
doctest.testmod()
99+
from doctest import testmod
100+
101+
testmod()
102102
display_billionaires(get_forbes_real_time_billionaires())

0 commit comments

Comments
 (0)