allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvansteenbu...@apache.org
Subject [3/3] git commit: [#6619] backwards compatibility for old tickets
Date Tue, 03 Sep 2013 21:03:01 GMT
[#6619] backwards compatibility for old tickets


Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/208f608f
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/208f608f
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/208f608f

Branch: refs/heads/master
Commit: 208f608f3bd9dd22b700fb9175e5e2a259009da4
Parents: 7a51d42
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Thu Aug 29 17:25:43 2013 +0000
Committer: Tim Van Steenburgh <tvansteenburgh@gmail.com>
Committed: Tue Sep 3 21:01:57 2013 +0000

----------------------------------------------------------------------
 ForgeTracker/forgetracker/tracker_main.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/208f608f/ForgeTracker/forgetracker/tracker_main.py
----------------------------------------------------------------------
diff --git a/ForgeTracker/forgetracker/tracker_main.py b/ForgeTracker/forgetracker/tracker_main.py
index c8e728c..8aa29f6 100644
--- a/ForgeTracker/forgetracker/tracker_main.py
+++ b/ForgeTracker/forgetracker/tracker_main.py
@@ -412,7 +412,8 @@ class ForgeTrackerApp(Application):
         f.write('{"tickets": [')
         tickets = TM.Ticket.query.find(dict(
             app_config_id=self.config._id,
-            deleted=False))
+            deleted={'$ne': True},  # backwards compat for old tickets that don't have it
set
+        ))
         for i, ticket in enumerate(tickets):
             if i > 0:
                 f.write(',')


Mime
View raw message