krz/nba-scores

A CLI/TUI app for NBA scores.

clone: git clone https://gitbay.org/krz/nba-scores.git

0809a7758f7e201d10c88d6f95fd86085a57e65d

signed_unknown_key

author: Christian Cleberg <hello@cmc.pub> · 2025-03-29T05:31:09Z

fix pylint errors
 nba/cli.py        | 8 ++++----
 nba/fetch_data.py | 2 +-
 nba/standings.py  | 1 +
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/nba/cli.py b/nba/cli.py
index a1a3eb6..4e13abf 100644
--- a/nba/cli.py
+++ b/nba/cli.py
@@ -15,11 +15,11 @@ def nba() -> None:
         parser.add_argument('--standings', action='store_true', help='Display the standings')
         args = parser.parse_args()
 
-        games, standings = fetch_data.fetch_data()
+        games, ranks = fetch_data.fetch_data()
 
         if args.scores:
-                scores.build_scoreboard(games, standings)
+                scores.build_scoreboard(games, ranks)
         elif args.standings:
-                standings.build_standings(standings)
+                standings.build_standings(ranks)
         else:
-                print("Please specify --scores or --standings")
\ No newline at end of file
+                print("Please specify --scores or --standings")
diff --git a/nba/fetch_data.py b/nba/fetch_data.py
index bba3a59..71cac33 100644
--- a/nba/fetch_data.py
+++ b/nba/fetch_data.py
@@ -25,4 +25,4 @@ def fetch_data() -> tuple:
 	games = json.loads(games_json)
 	standings = json.loads(standings_json)
 
-	return games, standings
\ No newline at end of file
+	return games, standings
diff --git a/nba/standings.py b/nba/standings.py
index a7773fe..3c796ee 100644
--- a/nba/standings.py
+++ b/nba/standings.py
@@ -4,6 +4,7 @@ Tabulate the current conference standings.
 from tabulate import tabulate
 
 # ANSI escape codes for text formatting
+BOLD = '\033[1m'
 END = '\033[0m'
 RED = '\033[91m'
 GREEN = '\033[32m'