mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-16 20:48:25 +00:00
Update build.py - remove duplicate data load
I noticed that there was a duplicate PokemonGameIndex import in the original build.py for the v2 import. It's still in your updated build.py so I edited it out.
This commit is contained in:
parent
6dec6e0dd4
commit
41662657a1
1 changed files with 0 additions and 14 deletions
|
@ -2045,20 +2045,6 @@ def build_pokemons():
|
|||
model.save()
|
||||
|
||||
|
||||
clear_table(PokemonGameIndex)
|
||||
data = load_data('pokemon_game_indices.csv')
|
||||
|
||||
for index, info in enumerate(data):
|
||||
if index > 0:
|
||||
|
||||
model = PokemonGameIndex (
|
||||
pokemon = Pokemon.objects.get(pk = int(info[0])),
|
||||
version = Version.objects.get(pk = int(info[1])),
|
||||
game_index = int(info[2])
|
||||
)
|
||||
model.save()
|
||||
|
||||
|
||||
clear_table(PokemonHabitatName)
|
||||
data = load_data('pokemon_habitat_names.csv')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue