Update web/core/views.py
This commit is contained in:
parent
f2a90746ab
commit
c54142446a
@ -391,7 +391,7 @@ def stats_page(request):
|
||||
for subj in Entry.objects.exclude(subject="").values_list("subject", flat=True):
|
||||
for tag in [t.strip() for t in subj.split(",") if t.strip()]:
|
||||
counts[tag.lower()] += 1
|
||||
top_subjects = [{"name": n.title(), "count": c} for n, c in counts.most_common(10)]
|
||||
top_subjects = [{"name": n.title(), "count": c} for n, c in counts.most_common(20)]
|
||||
|
||||
return render(
|
||||
request,
|
||||
|
||||
Loading…
Reference in New Issue
Block a user