Fix atom feed for tags.
This one was missed. Needs to call a big sql join. Luckily the join was already implemented.
This commit is contained in:
parent
0db3e10afb
commit
cb9b2b2a6f
@ -74,9 +74,7 @@ def tag_atom_feed(request):
|
||||
"""
|
||||
tag_slug = request.matchdict[u'tag']
|
||||
|
||||
cursor = request.db.MediaEntry.find(
|
||||
{u'state': u'processed',
|
||||
u'tags.slug': tag_slug})
|
||||
cursor = media_entries_for_tag_slug(request.db, tag_slug)
|
||||
cursor = cursor.sort('created', DESCENDING)
|
||||
cursor = cursor.limit(ATOM_DEFAULT_NR_OF_UPDATED_ITEMS)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user