Commit 162ade11 authored by Antoine Millet's avatar Antoine Millet
Browse files

Fixed bug in returned data of tags function.

parent 0d33d2a6
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -158,14 +158,17 @@ class ClientHandler(OnlineCCHandler):
        for obj in objects:
            if 'a' not in obj:
                raise BadObjectError('All objects must have the "a" tag.')
        tags = {}
        for obj in objects:
            return self._server.conf.show(obj['a'])['tags']
            tags[obj['a']] = self._server.conf.show(obj['a'])['tags']
        return tags

    @listed
    def delaccount(self, conn, query):
        '''
        Delete the account with specified login.
        '''
        
        objects = self._server.list(query)
        for obj in objects:
            if 'a' not in obj: