From 372643b61814d6190234a16e3fe44111714f2f49 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Thu, 25 Nov 2010 13:31:39 +0000 Subject: [PATCH] Clear the account's characters list before readding (Thanks Iniquita for finding this one). --- eve_api/api_puller/accounts.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eve_api/api_puller/accounts.py b/eve_api/api_puller/accounts.py index 4ec9432..3e0657d 100755 --- a/eve_api/api_puller/accounts.py +++ b/eve_api/api_puller/accounts.py @@ -61,6 +61,7 @@ def import_eve_account(api_key, user_id, force_cache=False): account.api_status = API_STATUS_OK account.save() + account.characters.clear() for node in characters_node_children: try: char = import_eve_character(api_key, user_id, node.getAttribute('characterID'))