Use new charlist, not the existing list

This commit is contained in:
2011-09-01 07:12:41 +01:00
parent e3a0e51859
commit 9c41b843d4

View File

@@ -126,7 +126,7 @@ def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=lo
cb = update_user_access.subtask(kwargs={'user': account.user.id })
else:
cb = None
import_eve_characters.delay(account.characters.all().values_list('id', flat=True), key_id=account.pk, callback=cb)
import_eve_characters.delay(newcharlist, key_id=account.pk, callback=cb)
else:
# No account object, just return
@@ -180,7 +180,7 @@ def import_apikey_func(api_userid, api_key, user=None, force_cache=False, log=lo
cb = update_user_access.subtask(kwargs={'user': account.user.id })
else:
cb = None
import_eve_characters.delay(account.characters.all().values_list('id', flat=True), key_id=account.pk, callback=cb)
import_eve_characters.delay(newcharlist, key_id=account.pk, callback=cb)
else:
# No account object, just return