From a319e58fd83fbcd3f7cd8a4e1f15f4d44b57998c Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Thu, 12 May 2011 16:41:35 +0200 Subject: [PATCH] Fixed update account process to unregister only account objects. --- ccserver/ccserver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ccserver/ccserver.py b/ccserver/ccserver.py index 9f8da59..0320d35 100644 --- a/ccserver/ccserver.py +++ b/ccserver/ccserver.py @@ -84,7 +84,8 @@ class CCServer(object): Update the database with accounts. ''' - db_accounts = self.objects.get_ids() + all_objects = self.objects.all((), ()) + db_accounts = set([o['a'] for o in all_objects if 'a' in o]) accounts = set(self.conf.list_accounts()) to_register = accounts - db_accounts -- GitLab