Skip to content

Commit dc7a48a

Browse files
dannyvfilmsclaude
andcommitted
Fix undefined IGDB_ARTWORK_TYPE_HERO NameError in key-art classification
IGDB_ARTWORK_TYPE_HERO was never defined; the only artwork-type constant in this module is IGDB_ARTWORK_TYPE_KEY_ART, which this comparison was clearly meant to use. Left as-is this crashes with a NameError the first time list artwork classification runs against IGDB's artworks endpoint. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
1 parent 4a6337a commit dc7a48a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lists/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@ def _get_igdb_carousel_media(self, media_id):
973973
artwork_types[artwork["id"]] = artwork["artwork_type"]
974974

975975
for artwork_id, image_id in artwork_image_ids.items():
976-
if artwork_types.get(artwork_id) == IGDB_ARTWORK_TYPE_HERO:
976+
if artwork_types.get(artwork_id) == IGDB_ARTWORK_TYPE_KEY_ART:
977977
key_art_image_ids.append(image_id)
978978
else:
979979
other_artwork_image_ids.append(image_id)

0 commit comments

Comments
 (0)