Skip to content

Commit

Permalink
use addon_count, not c.addon_count (bug 588658)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Balogh committed Aug 19, 2010
1 parent 687c00a commit 2446562
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/bandwagon/tasks.py
Expand Up @@ -57,7 +57,7 @@ def collection_meta(*ids, **kw):
.filter(cnt__gt=1).order_by('-cnt'))
for c in Collection.objects.no_cache().filter(id__in=ids):
addon_count = counts.get(c.id, 0)
all_personas = c.addon_count == persona_counts.get(c.id, None)
all_personas = addon_count == persona_counts.get(c.id, None)
addons = list(c.addons.values_list('id', flat=True))
c.top_tags = [t for t, _ in tags.filter(addon__in=addons)[:5]]
Collection.objects.filter(id=c.id).update(addon_count=addon_count,
Expand Down

0 comments on commit 2446562

Please sign in to comment.