Skip to content

Commit 34af55d

Browse files
committed
add a check that leaves 'ability' as None if it is left blank for past ability id
1 parent 4a49fa9 commit 34af55d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-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)