diff options
| author | Georg Brandl <georg@python.org> | 2012-12-30 18:04:08 +0100 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2012-12-30 18:04:08 +0100 |
| commit | c22aaeef7b22c785f4c8c7f44977ef417564d13b (patch) | |
| tree | 0260ff9ea5cd48b9a2da23254238794331c63584 /sphinx/websupport | |
| parent | ddd51f7cc76a9bd99c3876d1fa5dca9e41d556a0 (diff) | |
| parent | 4713a106cbbcf1c1f61fb73b6a2b8362b7593f9d (diff) | |
| download | sphinx-git-c22aaeef7b22c785f4c8c7f44977ef417564d13b.tar.gz | |
Closes #867: merge from https://bitbucket.org/giovannibajo/sphinx
Diffstat (limited to 'sphinx/websupport')
| -rw-r--r-- | sphinx/websupport/storage/sqlalchemystorage.py | 2 |
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( |
