# HG changeset patch # User Marcin Kuzminski # Date 2010-08-30 15:38:38 # Node ID 728fbb6931835c8ce5f7746e706dd4064d541738 # Parent 0d4fceb91c9ca030c29f3ebd3b4ac082ac4cf97b fixed bug in summary graph diff --git a/pylons_app/controllers/summary.py b/pylons_app/controllers/summary.py --- a/pylons_app/controllers/summary.py +++ b/pylons_app/controllers/summary.py @@ -74,13 +74,10 @@ class SummaryController(BaseController): #graph range td = datetime.today() + timedelta(days=1) - y = td.year - m = td.month - d = td.day - c.ts_min = mktime((y, (td - timedelta(days=calendar.mdays[m] - 1)).month, + y, m, d = td.year, td.month, td.day + c.ts_min = mktime((y, (td - timedelta(days=calendar.mdays[m])).month, d, 0, 0, 0, 0, 0, 0,)) c.ts_max = mktime((y, m, d, 0, 0, 0, 0, 0, 0,)) - def author_key_cleaner(k): k = person(k)