Skip to content

Commit dd6eef3

Browse files
committed
feat: Update field to symbol_icon
1 parent 477dddd commit dd6eef3

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

data/v2/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -661,7 +661,7 @@ def csv_record_to_objects(info):
661661
"name_icon": file_path_or_none(
662662
f"types/{generation}/{game}/{info[0]}.png"
663663
),
664-
"logo": file_path_or_none(
664+
"symbol_icon": file_path_or_none(
665665
f"types/{generation}/{game}/small/{info[0]}.png"
666666
),
667667
}

pokemon_v2/tests.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ def setup_type_sprites_data(cls, type):
732732
else:
733733
sprites[generation][game] = {
734734
"name_icon": f"https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/types/{generation}/{game}/{type.id}.png",
735-
"logo": f"https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/types/{generation}/{game}/small/{type.id}.png",
735+
"symbol_icon": f"https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/types/{generation}/{game}/small/{type.id}.png",
736736
}
737737

738738
type_sprites = TypeSprites.objects.create(
@@ -3661,8 +3661,8 @@ def test_type_api(self):
36613661
sprites_data[generation][game]["name_icon"],
36623662
)
36633663
self.assertEqual(
3664-
json.loads(response.data["sprites"])[generation][game]["logo"],
3665-
sprites_data[generation][game]["logo"],
3664+
json.loads(response.data["sprites"])[generation][game]["symbol_icon"],
3665+
sprites_data[generation][game]["symbol_icon"],
36663666
)
36673667

36683668
# Pokedex Tests

0 commit comments

Comments
 (0)