зеркало из https://github.com/mozilla/kitsune.git
Keep number of avatars in Customer Care stats to a maximum of 16 (4x4).
This commit is contained in:
Родитель
23934a28cc
Коммит
aa6b61a068
|
@ -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],
|
||||
|
|
Загрузка…
Ссылка в новой задаче