Update web/core/views.py
This commit is contained in:
+1
-1
@@ -391,7 +391,7 @@ def stats_page(request):
|
|||||||
for subj in Entry.objects.exclude(subject="").values_list("subject", flat=True):
|
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()]:
|
for tag in [t.strip() for t in subj.split(",") if t.strip()]:
|
||||||
counts[tag.lower()] += 1
|
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(
|
return render(
|
||||||
request,
|
request,
|
||||||
|
|||||||
Reference in New Issue
Block a user