mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Apply patch from:
https://bitbucket.org/birkenfeld/sphinx/issue/867/error-in-websupport-get_metadata
This commit is contained in:
parent
7d13d61a29
commit
4713a106cb
@ -116,7 +116,7 @@ class SQLAlchemyStorage(StorageBackend):
|
|||||||
def get_metadata(self, docname, moderator):
|
def get_metadata(self, docname, moderator):
|
||||||
session = Session()
|
session = Session()
|
||||||
subquery = session.query(
|
subquery = session.query(
|
||||||
Comment.id, Comment.node_id,
|
Comment.node_id,
|
||||||
func.count('*').label('comment_count')).group_by(
|
func.count('*').label('comment_count')).group_by(
|
||||||
Comment.node_id).subquery()
|
Comment.node_id).subquery()
|
||||||
nodes = session.query(Node.id, subquery.c.comment_count).outerjoin(
|
nodes = session.query(Node.id, subquery.c.comment_count).outerjoin(
|
||||||
|
Loading…
Reference in New Issue
Block a user