bodhi/util.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit 9173150b07adcdc737f96bf64695cccff0334a50
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Feb 10 21:34:09 2009 -0500
Make the status configurable in bodhi.util.reset_date_pushed
diff --git a/bodhi/util.py b/bodhi/util.py
index d8bea86..73b19f5 100644
--- a/bodhi/util.py
+++ b/bodhi/util.py
@@ -440,7 +440,7 @@ def json_redirect(f, *args, **kw):
Misc iPython hacks that I've had to write at one point or another
"""
-def reset_date_pushed():
+def reset_date_pushed(status='testing'):
"""
Reset the date_pushed on all testing updates with the most recent bodhi
comment that relates to it's current status.
@@ -451,7 +451,7 @@ def reset_date_pushed():
from bodhi.model import PackageUpdate
from sqlobject import AND
for update in PackageUpdate.select(AND(PackageUpdate.q.date_pushed==None,
- PackageUpdate.q.status=='testing')):
+ PackageUpdate.q.status==testing)):
date = None
for comment in update.comments:
if comment.author == 'bodhi':
Show replies by date