allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kentontay...@apache.org
Subject [1/2] allura git commit: Fix _id var name (affects user searches where *anonymous/None is in results)
Date Wed, 26 Sep 2018 19:07:42 GMT
Repository: allura
Updated Branches:
  refs/heads/master 64d5a1024 -> 7f849d9fb


Fix _id var name (affects user searches where *anonymous/None is in results)


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

Branch: refs/heads/master
Commit: 010b0d3171b282b411ca7bf31678cd91ab3f30e4
Parents: 1c28d5d
Author: Dave Brondsema <dave@brondsema.net>
Authored: Thu Sep 20 17:45:00 2018 -0400
Committer: Dave Brondsema <dave@brondsema.net>
Committed: Thu Sep 20 17:45:00 2018 -0400

----------------------------------------------------------------------
 Allura/allura/lib/search.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/010b0d31/Allura/allura/lib/search.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/search.py b/Allura/allura/lib/search.py
index bc185b5..53669eb 100644
--- a/Allura/allura/lib/search.py
+++ b/Allura/allura/lib/search.py
@@ -355,7 +355,7 @@ def artifacts_from_index_ids(index_ids, model, objectid_id=True):
     # this could be made more flexible to not require the model passed in
     ids = [index_id.split('#')[1] for index_id in index_ids]
     if objectid_id:
-        ids = [bson.ObjectId(_id) for _id in ids if id != 'None']
+        ids = [bson.ObjectId(_id) for _id in ids if _id != 'None']
     return model.query.find({'_id': {'$in': ids}}).all()
 
 


Mime
View raw message