Commit 0809a7758f

0809a7758f7e201d10c88d6f95fd86085a57e65d

parent: 8e119140ef

Unregistered key

cmc <hello@cmc.pub> · 2025-03-29 05:31 UTC

fix pylint errors

Layout: unified · split

nba/cli.py +4 −4
@@ -15,11 +15,11 @@ def nba() -> None:
1515 parser.add_argument('--standings', action='store_true', help='Display the standings')
1616 args = parser.parse_args()
1717
18 games, standings = fetch_data.fetch_data()
18 games, ranks = fetch_data.fetch_data()
1919
2020 if args.scores:
21 scores.build_scoreboard(games, standings)
21 scores.build_scoreboard(games, ranks)
2222 elif args.standings:
23 standings.build_standings(standings)
23 standings.build_standings(ranks)
2424 else:
25 print("Please specify --scores or --standings")
\ No newline at end of file
25 print("Please specify --scores or --standings")
nba/fetch_data.py +1 −1
@@ -25,4 +25,4 @@ def fetch_data() -> tuple:
2525 games = json.loads(games_json)
2626 standings = json.loads(standings_json)
2727
28 return games, standings
\ No newline at end of file
28 return games, standings
nba/standings.py +1
@@ -4,6 +4,7 @@ Tabulate the current conference standings.
44from tabulate import tabulate
55
66# ANSI escape codes for text formatting
7BOLD = '\033[1m'
78END = '\033[0m'
89RED = '\033[91m'
910GREEN = '\033[32m'