[rhmessaging-commits] rhmessaging commits: r2149 - mgmt/cumin/python/cumin.
rhmessaging-commits at lists.jboss.org
rhmessaging-commits at lists.jboss.org
Tue Jun 10 17:10:49 EDT 2008
Author: justi9
Date: 2008-06-10 17:10:49 -0400 (Tue, 10 Jun 2008)
New Revision: 2149
Modified:
mgmt/cumin/python/cumin/widgets.py
Log:
Fix query constraint produced by the phase selector widget
Modified: mgmt/cumin/python/cumin/widgets.py
===================================================================
--- mgmt/cumin/python/cumin/widgets.py 2008-06-10 17:04:59 UTC (rev 2148)
+++ mgmt/cumin/python/cumin/widgets.py 2008-06-10 21:10:49 UTC (rev 2149)
@@ -370,12 +370,13 @@
phase = self.get(session)
if phase == "a":
- sql = "c.rec_time is null or " + \
- "c.rec_time > now() - interval '10 minutes'"
+ sql = "((c.rec_time is null or " + \
+ "c.rec_time > now() - interval '10 minutes')" + \
+ " and deletion_time is null)"
elif phase == "i":
- sql = "c.rec_time is null or " + \
- "((c.rec_time <= now() - interval '10 minutes'" + \
- " and deletion_time is null))"
+ sql = "((c.rec_time is null or " + \
+ "c.rec_time <= now() - interval '10 minutes')" + \
+ " and deletion_time is null)"
else:
sql = "deletion_time is not null"
More information about the rhmessaging-commits
mailing list