summaryrefslogtreecommitdiff
path: root/devel/views.py
diff options
context:
space:
mode:
authorDusty Phillips <buchuki@gmail.com>2008-10-07 11:48:58 -0400
committerDusty Phillips <buchuki@gmail.com>2008-10-07 11:48:58 -0400
commitfb9158dec8b1b735fa653c98d07f78ca14eb425c (patch)
treed922f7b323dbf535e04ebb578e99ceb83f3564bb /devel/views.py
parent3d4775486e0c32cccfb0c5a480f8b629aaf60e5a (diff)
fairly invasive refactor to developer dashboard to be more django friendly
Diffstat (limited to 'devel/views.py')
-rw-r--r--devel/views.py27
1 files changed, 5 insertions, 22 deletions
diff --git a/devel/views.py b/devel/views.py
index 002d2b52..77d4054b 100644
--- a/devel/views.py
+++ b/devel/views.py
@@ -13,7 +13,6 @@ def index(request):
# get a list of incomplete package todo lists
todos = Todolist.objects.get_incomplete()
# get flagged-package stats for all maintainers
- stats = Package.objects.get_flag_stats()
if thismaint:
# get list of flagged packages for this maintainer
pkgs = Package.objects.filter(
@@ -22,29 +21,13 @@ def index(request):
else:
pkgs = None
- arch_stats = []
- for xarch in Arch.objects.all():
- arch_stats.append({
- 'name': xarch.name,
- 'count': Package.objects.filter(arch=xarch).count(),
- 'flagged': Package.objects.filter(arch=xarch).filter(
- needupdate=True).exclude(
- repo__name__iexact='testing').count()
- })
-
- repo_stats = []
- for xrepo in Repo.objects.all():
- repo_stats.append({
- 'name': xrepo.name,
- 'count': Package.objects.filter(repo=xrepo).count(),
- 'flagged': Package.objects.filter(
- repo=xrepo).filter(needupdate=True).count()
- })
-
return render_response(
request, 'devel/index.html',
- {'stats': stats, 'pkgs': pkgs, 'todos': todos, 'maint': thismaint,
- 'repos': repo_stats, 'arches': arch_stats})
+ {'pkgs': pkgs, 'todos': todos, 'maint': thismaint,
+ 'repos': Repo.objects.all(), 'arches': Arch.objects.all(),
+ 'maintainers':
+ [User(id=0, first_name="Orphans")] + list(User.objects.all())
+ })
#@is_maintainer
def change_notify(request):