Change the race lookup method now that the dict is gone

This commit is contained in:
2010-08-07 13:47:35 +01:00
parent 2b2cf5e7b1
commit 7308598c8e

View File

@@ -157,7 +157,11 @@ def import_eve_character(api_key, user_id, character_id):
else:
pchar.gender = 2
pchar.race = API_RACES[values['race']]
for v in API_RACES_CHOICES:
val, race = v
if race == values['race']:
pchar.race = val
break
total = 0
for skill in values['skills']: