Commit a319e58f authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed update account process to unregister only account objects.

parent ca22ce6b
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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