Skip to content
Browse files

fixed syntax error on sorting news items in advanced query

  • Loading branch information...
1 parent 1971656 commit 4dd779c09f61bf2874e4c7ff7e0d53f44c363218 @ableeb ableeb committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 collective/portlets/lineage/LineageNewsPortlet.py
View
2 collective/portlets/lineage/LineageNewsPortlet.py
@@ -112,7 +112,7 @@ def _data(self):
query = catalog.makeAdvancedQuery({'portal_type':'News Item', 'review_state':state, 'path':path, 'sort_on':'Date','sort_order':'reverse','sort_limit':limit})
if excludeSubsite:
query &= ~ In('path', get_subsites(path,catalog), filter=True)
- results = catalog.evalAdvancedQuery(query,('Date','desc'),)
+ results = catalog.evalAdvancedQuery(query, (('Date','desc'),))
return results[:limit]

0 comments on commit 4dd779c

Please sign in to comment.
Something went wrong with that request. Please try again.