summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
Diffstat (limited to 'devel')
-rw-r--r--devel/views.py14
1 files changed, 13 insertions, 1 deletions
diff --git a/devel/views.py b/devel/views.py
index 449190f2..bf49346f 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -31,8 +31,20 @@ def index(request):
else:
pkgs = None
+ repo_stats = []
+ for repo in Repo.objects.all():
+ repo_stats.append({
+ 'name': repo.name,
+ 'count': Package.objects.filter(repo__exact = repo).count(),
+ 'flagged': Package.objects.filter(repo__exact = repo).filter(needupdate=True).count()
+ })
+
return render_response(request, 'devel/index.html',
- {'stats':stats, 'pkgs':pkgs, 'todos':todos, 'maint':thismaint})
+ {'stats':stats,
+ 'pkgs':pkgs,
+ 'todos':todos,
+ 'maint':thismaint,
+ 'repos': repo_stats})
@login_required
#@is_maintainer