Skip to content

Commit

Permalink
Fix wrong key in initial tagcloud
Browse files Browse the repository at this point in the history
ffont committed Apr 17, 2024
1 parent e205598 commit 47dbbbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tags/views.py
Original file line number Diff line number Diff line change
@@ -70,7 +70,7 @@ def tags(request, multiple_tags=None):
group_by_pack=True,
group_counts_as_one_in_facets=False,
))
initial_tagcloud = [dict(name=f[0], count=f[1], browse_url=reverse('tags', args=[f[0]])) for f in results.facets["tag"]]
initial_tagcloud = [dict(name=f[0], count=f[1], browse_url=reverse('tags', args=[f[0]])) for f in results.facets[settings.SEARCH_SOUNDS_FIELD_TAGS]]
cache.set('initial_tagcloud', initial_tagcloud, 60 * 60 * 12) # cache for 12 hours
tvars.update({'initial_tagcloud': initial_tagcloud})

0 comments on commit 47dbbbc

Please sign in to comment.