diff pylons_app/controllers/summary.py @ 486:5c376ac2d4c9 celery

rewrote graph plotting, added zooming and json dump insted of stupid string formating.
author Marcin Kuzminski <marcin@python-works.com>
date Sat, 18 Sep 2010 17:03:29 +0200
parents 6b934c9607e7
children 2256c78afe53
line wrap: on
line diff
--- a/pylons_app/controllers/summary.py	Sat Sep 18 00:50:54 2010 +0200
+++ b/pylons_app/controllers/summary.py	Sat Sep 18 17:03:29 2010 +0200
@@ -22,7 +22,7 @@
 summary controller for pylons
 @author: marcink
 """
-from pylons import tmpl_context as c, request,url
+from pylons import tmpl_context as c, request, url
 from pylons_app.lib.auth import LoginRequired, HasRepoPermissionAnyDecorator
 from pylons_app.lib.base import BaseController, render
 from pylons_app.lib.utils import OrderedDict
@@ -61,10 +61,11 @@
         for name, hash in c.repo_info.branches.items()[:10]:
             c.repo_branches[name] = c.repo_info.get_changeset(hash)
         
-        task = run_task(get_commits_stats,c.repo_info.name)
+        task = run_task(get_commits_stats, c.repo_info.name)
         c.ts_min = task.result[0]
         c.ts_max = task.result[1]
         c.commit_data = task.result[2]
+        c.overview_data = task.result[3]
         
         return render('summary/summary.html')