Use the object, not the tuple

This commit is contained in:
2011-03-16 09:18:55 +00:00
parent 9a4afe9164
commit ae27be7e90

View File

@@ -133,7 +133,7 @@ def import_eve_character_func(character_id, api_key=None, user_id=None, logger=l
EVEPlayerCharacterSkill.objects.filter(character=pchar).update(in_training=0)
if int(queuedoc['skillInTraining']):
skillobj, created = EVESkill.objects.get_or_create(id=queuedoc['trainingTypeID'])
charskillobj = EVEPlayerCharacterSkill.objects.get_or_create(skill=skillobj, character=pchar)
charskillobj, created = EVEPlayerCharacterSkill.objects.get_or_create(skill=skillobj, character=pchar)
charskillobj.in_training = queuedoc['trainingToLevel']
charskillobj.save()