summaryrefslogtreecommitdiff
path: root/sphinx/websupport/storage/sqlalchemystorage.py
diff options
context:
space:
mode:
authorRobert Lehmann <mail@robertlehmann.de>2013-01-02 17:45:33 +0100
committerRobert Lehmann <mail@robertlehmann.de>2013-01-02 17:45:33 +0100
commit0725cb608a9ca6de67d3e681acb51507c300936e (patch)
treee34d12e2493e12a7c68e3b43040bb2c664e6e8d3 /sphinx/websupport/storage/sqlalchemystorage.py
parentebc953d15cf1ea583e1b79399fb074ad26f7c6ce (diff)
parent151856819c212229f6f58a8a2cbf9223a4191f94 (diff)
downloadsphinx-git-0725cb608a9ca6de67d3e681acb51507c300936e.tar.gz
merge with birkenfeld/sphinx
Diffstat (limited to 'sphinx/websupport/storage/sqlalchemystorage.py')
-rw-r--r--sphinx/websupport/storage/sqlalchemystorage.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/websupport/storage/sqlalchemystorage.py b/sphinx/websupport/storage/sqlalchemystorage.py
index e6eccfe97..56528f4be 100644
--- a/sphinx/websupport/storage/sqlalchemystorage.py
+++ b/sphinx/websupport/storage/sqlalchemystorage.py
@@ -5,7 +5,7 @@
An SQLAlchemy storage backend.
- :copyright: Copyright 2007-2011 by the Sphinx team, see AUTHORS.
+ :copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
:license: BSD, see LICENSE for details.
"""
@@ -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(