Skip to content

Commit fcb1264

Browse files
committed
Merge branch 'master' of github.com:jemarq04/pokeapi into add_location_names
2 parents 7c59158 + e32aa27 commit fcb1264

File tree

2 files changed

+541
-1
lines changed

2 files changed

+541
-1
lines changed

data/v2/build.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2026,7 +2026,7 @@ def csv_record_to_objects(info):
20262026
yield PokemonAbilityPast(
20272027
pokemon_id=int(info[0]),
20282028
generation_id=int(info[1]),
2029-
ability_id=int(info[2]),
2029+
ability_id=int(info[2]) if info[2] != "" else None,
20302030
is_hidden=bool(int(info[3])),
20312031
slot=int(info[4]),
20322032
)

0 commit comments

Comments
 (0)