Commit a319e58f authored by Antoine Millet's avatar Antoine Millet

Fixed update account process to unregister only account objects.

parent ca22ce6b
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment