allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From brond...@apache.org
Subject [2/3] git commit: [#7065] remove unindexed query to find slug in a different thread
Date Thu, 16 Jan 2014 17:37:00 GMT
[#7065] remove unindexed query to find slug in a different thread


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

Branch: refs/heads/db/7065
Commit: 8894ce780f852dc2100cd19a88ce004104602801
Parents: 6e5f7c6
Author: Dave Brondsema <dbrondsema@slashdotmedia.com>
Authored: Thu Jan 16 16:48:41 2014 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu Jan 16 17:36:27 2014 +0000

----------------------------------------------------------------------
 Allura/allura/controllers/discuss.py | 3 ---
 1 file changed, 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/8894ce78/Allura/allura/controllers/discuss.py
----------------------------------------------------------------------
diff --git a/Allura/allura/controllers/discuss.py b/Allura/allura/controllers/discuss.py
index 88ec552..aefd472 100644
--- a/Allura/allura/controllers/discuss.py
+++ b/Allura/allura/controllers/discuss.py
@@ -278,9 +278,6 @@ class PostController(BaseController):
             slug=self._post_slug, thread_id=self.thread._id)
         if post:
             return post
-        post = self.M.Post.query.get(slug=self._post_slug)
-        if post:
-            return post
         else:
             redirect('..')
 


Mime
View raw message