diff --git a/core.py b/core.py index e5e114a66719657b70c4641a7ed4d14cf58517d1..201eec374d24e82a4a67c3414abd724dad7a7b1b 100644 --- a/core.py +++ b/core.py @@ -186,7 +186,7 @@ class Core(base.RequestHandler): def sites(self): """Return local and remote sites.""" if self.app.config['site_id'] == 'local': - return self.app.db.sites.find_one({'_id': 'local'}, {'_id': 1, 'name': 1, 'onload': 1}) + return [self.app.db.sites.find_one({'_id': 'local'}, {'_id': 1, 'name': 1, 'onload': 1})] if self.public_request or self.request.get('all').lower() in ('1', 'true'): sites = list(self.app.db.sites.find(None, ['name'])) else: