Skip to content

Commit

Permalink
Use an empty list instead of a list with None for unknown release dates
Browse files Browse the repository at this point in the history
  • Loading branch information
woctezuma committed Dec 31, 2024
1 parent 6d13323 commit 4ac18c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions igdb_match_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ def get_link_to_igdb_website(
def get_igdb_human_release_dates(
igdb_id: int | str,
igdb_local_database: dict,
) -> tuple[list[str | None], str | None]:
) -> tuple[list[str], str | None]:
igdb_id_as_str = str(igdb_id)

igdb_data = igdb_local_database[igdb_id_as_str]
Expand All @@ -57,7 +57,7 @@ def get_igdb_human_release_dates(
)
except KeyError:
# Unknown release date
human_release_dates = [None]
human_release_dates = []

if human_release_dates:
human_release_date_to_remember = max(human_release_dates)
Expand Down

0 comments on commit 4ac18c6

Please sign in to comment.