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:
@@ -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)
|
||||
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user