bodhi/util.py | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 0b13cd230a9925f0d267aff8edaca94e3c5e8d32
Author: Luke Macken <lmacken(a)redhat.com>
Date: Tue Feb 10 21:30:25 2009 -0500
Import the PackageUpdate model where necessary in our utils module
diff --git a/bodhi/util.py b/bodhi/util.py
index cc1da5c..0561455 100644
--- a/bodhi/util.py
+++ b/bodhi/util.py
@@ -448,6 +448,7 @@ def reset_date_pushed():
This needed to happen when a few batches of updates were pushed without
a date_pushed field, so we had to recreate it based on bodhi's comments.
"""
+ from bodhi.model import PackageUpdate
for update in PackageUpdate.select(AND(PackageUpdate.q.date_pushed==None,
PackageUpdate.q.status=='testing')):
date = None
@@ -465,6 +466,7 @@ def reset_date_pushed():
def testing_statistics():
""" Calculate and display various testing statistics
"""
from datetime import timedelta
+ from bodhi.model import PackageUpdate
deltas = []
occurrences = {}
Show replies by date