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:
Courtney Strachan 2015-12-05 18:54:09 -08:00
parent 6dec6e0dd4
commit 41662657a1

View file

@ -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')