Repository: allura Updated Branches: refs/heads/master 77619a1b6 -> 699e8ae66
[#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/699e8ae6 Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/699e8ae6 Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/699e8ae6 Branch: refs/heads/master Commit: 699e8ae66b7fffc6c780978a428489776cf6d93b Parents: 77619a1 Author: Dave Brondsema <d...@brondsema.net> Authored: Thu Sep 22 15:29:15 2016 -0400 Committer: Dave Brondsema <d...@brondsema.net> Committed: Mon Sep 26 11:04:48 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/699e8ae6/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()