mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #867: merge from https://bitbucket.org/giovannibajo/sphinx
This commit is contained in:
commit
c22aaeef7b
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user