mirror of
https://github.com/PokeAPI/pokeapi
synced 2025-02-16 20:48:25 +00:00
commit
b5981d70ff
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