From aa6b61a068e67ab79a54e8bf9d289fe27b6d4ad1 Mon Sep 17 00:00:00 2001 From: Fred Wenzel Date: Thu, 2 Dec 2010 14:48:26 -0800 Subject: [PATCH] Keep number of avatars in Customer Care stats to a maximum of 16 (4x4). --- apps/customercare/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/customercare/views.py b/apps/customercare/views.py index 9a5a9f8d1..e4aee618b 100644 --- a/apps/customercare/views.py +++ b/apps/customercare/views.py @@ -102,6 +102,9 @@ def landing(request): period = contrib[1] if not contributor_stats.get(period): contributor_stats[period] = [] + elif len(contributor_stats[period]) == 16: + # Show a max. of 16 people. + continue contributor_stats[period].append({ 'name': contrib[2],