Commit 96a76ac9 authored by Antoine Millet's avatar Antoine Millet
Browse files

Tags method in client handler now return a list of tags.

parent 323558c8
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -162,9 +162,11 @@ class ClientHandler(OnlineCCHandler):
        for obj in objects:
            if 'a' not in obj:
                raise BadObjectError('All objects must have the "a" tag.')
        tags = {}
        tags = []
        for obj in objects:
            tags[obj['a']] = self._server.conf.show(obj['a'])['tags']
            otags = self._server.conf.show(obj['a'])['tags']
            otags.update({'id': obj['id']})
            tags.append(otags)
        return tags

    @listed