summaryrefslogtreecommitdiff
path: root/sphinx/websupport/storage
diff options
context:
space:
mode:
Diffstat (limited to 'sphinx/websupport/storage')
-rw-r--r--sphinx/websupport/storage/sqlalchemystorage.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/websupport/storage/sqlalchemystorage.py b/sphinx/websupport/storage/sqlalchemystorage.py
index e6eccfe97..16de763e2 100644
--- a/sphinx/websupport/storage/sqlalchemystorage.py
+++ b/sphinx/websupport/storage/sqlalchemystorage.py
@@ -116,7 +116,7 @@ class SQLAlchemyStorage(StorageBackend):
def get_metadata(self, docname, moderator):
session = Session()
subquery = session.query(
- Comment.id, Comment.node_id,
+ Comment.node_id,
func.count('*').label('comment_count')).group_by(
Comment.node_id).subquery()
nodes = session.query(Node.id, subquery.c.comment_count).outerjoin(