Bug 477477 - Fix pushlog-feed.py's treatment of form members [r=reed]
authorDirkjan Ochtman <dirkjan@ochtman.nl>
Mon, 09 Feb 2009 02:15:16 -0600
changeset 57 4087fe690caf
parent 56 cd5ef08c3002
child 58 dec4385b03f6
push id31
push userreed@reedloden.com
push dateMon, 09 Feb 2009 08:15:36 +0000
reviewersreed
bugs477477
Bug 477477 - Fix pushlog-feed.py's treatment of form members [r=reed]
pushlog-feed.py
--- a/pushlog-feed.py
+++ b/pushlog-feed.py
@@ -397,18 +397,18 @@ def pushlogHTML(web, req, tmpl):
 
     parity = paritygen(web.stripecount)
 
     return tmpl('pushlog',
                 changenav=changenav(),
                 rev=0,
                 entries=lambda **x: changelist(limit=0,**x),
                 latestentry=lambda **x: changelist(limit=1,**x),
-                startdate='startdate' in req.form and req.form['startdate'] or '1 week ago',
-                enddate='enddate' in req.form and req.form['enddate'] or 'now',
+                startdate='startdate' in req.form and req.form['startdate'][0] or '1 week ago',
+                enddate='enddate' in req.form and req.form['enddate'][0] or 'now',
                 querydescription=query.description(),
                 archives=web.archivelist("tip"))
 
 def pushes_worker(query):
     """Given a PushlogQuery, return a data structure mapping push IDs
     to a map of data about the push."""
     pushes = {}
     for id, user, date, node in query.entries: