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 2016/09/22 19:29:22 UTC

allura git commit: [#8131] use correct field name in LastCommitDoc queries

Repository: allura
Updated Branches:
  refs/heads/db/8131 [created] d9c9df551


[#8131] use correct field name in LastCommitDoc queries


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

Branch: refs/heads/db/8131
Commit: d9c9df551fb951ee0658bb360e8930251e997563
Parents: 7fb4022
Author: Dave Brondsema <da...@brondsema.net>
Authored: Thu Sep 22 15:29:15 2016 -0400
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Thu Sep 22 15:29:15 2016 -0400

----------------------------------------------------------------------
 Allura/allura/scripts/refreshrepo.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/d9c9df55/Allura/allura/scripts/refreshrepo.py
----------------------------------------------------------------------
diff --git a/Allura/allura/scripts/refreshrepo.py b/Allura/allura/scripts/refreshrepo.py
index fbec016..115e5a4 100644
--- a/Allura/allura/scripts/refreshrepo.py
+++ b/Allura/allura/scripts/refreshrepo.py
@@ -111,12 +111,12 @@ class RefreshRepo(ScriptTask):
 
                             # delete LastCommitDocs
                             i = M.repository.LastCommitDoc.m.find(
-                                dict(commit_ids={'$in': ci_ids_chunk})).count()
+                                dict(commit_id={'$in': ci_ids_chunk})).count()
                             if i:
                                 log.info(
                                     "Deleting %i remaining LastCommitDoc docs, by repo id...", i)
                                 M.repository.LastCommitDoc.m.remove(
-                                    dict(commit_ids={'$in': ci_ids_chunk}))
+                                    dict(commit_id={'$in': ci_ids_chunk}))
 
                             i = M.repository.CommitRunDoc.m.find(
                                 {"commit_ids": {"$in": ci_ids_chunk}}).count()