Update web/core/views.py

This commit is contained in:
Joshua Laymon 2025-08-20 03:03:56 +00:00
parent f2a90746ab
commit c54142446a

View File

@ -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,