You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2020/06/18 15:42:04 UTC
[allura] 03/04: [#8363] misc api change
This is an automated email from the ASF dual-hosted git repository.
brondsem pushed a commit to branch db/8363
in repository https://gitbox.apache.org/repos/asf/allura.git
commit 4f1b2f842876e56e6da2ad56c212ffb6eb0e7d1e
Author: Dave Brondsema <da...@brondsema.net>
AuthorDate: Tue Jun 2 15:19:29 2020 -0400
[#8363] misc api change
---
Allura/allura/command/show_models.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Allura/allura/command/show_models.py b/Allura/allura/command/show_models.py
index f38851d..b1bed1f 100644
--- a/Allura/allura/command/show_models.py
+++ b/Allura/allura/command/show_models.py
@@ -344,7 +344,7 @@ class EnsureIndexCommand(base.Command):
def _remove_dupes(self, collection, spec):
iname = collection.create_index(spec)
fields = [f[0] for f in spec]
- q = collection.find({}, fields=fields).sort(spec)
+ q = collection.find({}, projection=fields).sort(spec)
def keyfunc(doc):
return tuple(doc.get(f, None) for f in fields)