Commits

Georg Brandl  committed 22768d1 Merge
  • Participants
  • Parent commits 280d840, 38794c4

Comments (0)

Files changed (1)

File sphinx/websupport/storage/sqlalchemystorage.py

     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(