You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by jo...@apache.org on 2012/10/15 23:18:56 UTC
[4/7] git commit: [#4927] ticket:185 removed trailing spaces and
fixed several repo refresh
[#4927] ticket:185 removed trailing spaces and fixed several repo refresh
Project: http://git-wip-us.apache.org/repos/asf/incubator-allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-allura/commit/ac5a58fb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-allura/tree/ac5a58fb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-allura/diff/ac5a58fb
Branch: refs/heads/master
Commit: ac5a58fbcbd5ac2852fbc5e35e4677ec735e150a
Parents: ede9f52
Author: Anton Kasyanov <mi...@gmail.com>
Authored: Thu Oct 11 19:33:40 2012 +0300
Committer: Cory Johns <jo...@geek.net>
Committed: Mon Oct 15 20:23:07 2012 +0000
----------------------------------------------------------------------
Allura/allura/tasks/repo_tasks.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-allura/blob/ac5a58fb/Allura/allura/tasks/repo_tasks.py
----------------------------------------------------------------------
diff --git a/Allura/allura/tasks/repo_tasks.py b/Allura/allura/tasks/repo_tasks.py
index 7cfc463..a435d66 100644
--- a/Allura/allura/tasks/repo_tasks.py
+++ b/Allura/allura/tasks/repo_tasks.py
@@ -92,7 +92,9 @@ def refresh(**kwargs):
#don't create multiple refresh tasks
q = {
'task_name': 'allura.tasks.repo_tasks.refresh',
- 'state': 'busy'
+ 'state': 'busy',
+ 'context.app_config_id': c.app.config._id,
+ 'context.project_id': c.project._id,
}
refresh_tasks_count = M.MonQTask.query.find(q).count()
q['state'] = 'ready'