From 879966f879c6fb7c8682996021d71726f2e75f9c Mon Sep 17 00:00:00 2001 From: RiccardoBarbieri Date: Wed, 17 Jul 2024 11:00:44 +0200 Subject: [PATCH] Fixed unchecked iteration --- nba_api/deployment/version | 2 +- nba_api/swagger_server/controllers/match_controller.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nba_api/deployment/version b/nba_api/deployment/version index d2d61a7..e2cac26 100644 --- a/nba_api/deployment/version +++ b/nba_api/deployment/version @@ -1 +1 @@ -1.2.2 \ No newline at end of file +1.2.3 \ No newline at end of file diff --git a/nba_api/swagger_server/controllers/match_controller.py b/nba_api/swagger_server/controllers/match_controller.py index a0da892..8875e93 100644 --- a/nba_api/swagger_server/controllers/match_controller.py +++ b/nba_api/swagger_server/controllers/match_controller.py @@ -66,7 +66,7 @@ def matches_get(date_from: str, date_to: str | None = None) -> list[dict[str, st matches = helper.get_league_game_log_by_date(date_from, date_to) res = [] - if len(matches) == 0: + if matches is None: return res for match in matches: