Remove custom GMQuery class

We provided a custom GMQuery class that offered a .sort() method for
compatibility with the Mongo syntax. Now that we have settled for sqlalchemy
which uses the order_by() method, we can safely remove this custom class
and move a little closer to "pure" and native sqlalchemy usage.

Signed-off-by: Sebastian Spaeth <Sebastian@SSpaeth.de>
This commit is contained in:
Sebastian Spaeth
2013-01-07 13:52:14 +01:00
parent 39dc3bf8db
commit 20be9bb77d
2 changed files with 2 additions and 15 deletions

View File

@@ -514,7 +514,7 @@ def collection_atom_feed(request):
cursor = CollectionItem.query.filter_by(
collection=collection.id) \
.sort(CollectionItem.added.desc()) \
.order_by(CollectionItem.added.desc()) \
.limit(ATOM_DEFAULT_NR_OF_UPDATED_ITEMS)
"""