summaryrefslogtreecommitdiff
path: root/linaro_metrics/team_project_credit.py
diff options
context:
space:
mode:
Diffstat (limited to 'linaro_metrics/team_project_credit.py')
-rw-r--r--linaro_metrics/team_project_credit.py12
1 files changed, 4 insertions, 8 deletions
diff --git a/linaro_metrics/team_project_credit.py b/linaro_metrics/team_project_credit.py
index d1e973e..5c080b8 100644
--- a/linaro_metrics/team_project_credit.py
+++ b/linaro_metrics/team_project_credit.py
@@ -6,7 +6,6 @@ import logging
from django.conf import settings
-from linaro_metrics.crowd import Crowd
from linaro_metrics.parsemail import get_linaro_person
from linaro_metrics.models import (
CommitTagCredit,
@@ -22,10 +21,10 @@ response_re = \
r' .*<(.*@.*)>$', re.M | re.I)
-def update_commit_callback(crowd, project, repo, commit, dryrun):
+def update_commit_callback(project, repo, commit, dryrun):
for match in response_re.finditer(commit.message):
tag, email = match.groups()
- p = get_linaro_person(crowd, email)
+ p = get_linaro_person(email)
if p:
log.debug('User %s found with tag %s', p, tag)
if not dryrun:
@@ -47,8 +46,5 @@ def update_commit_callback(crowd, project, repo, commit, dryrun):
@contextlib.contextmanager
def update_commit_callback_constructor():
- crwd = Crowd(settings.CROWD_USER, settings.CROWD_PASS, settings.CROWD_URL)
-
- with crwd.cached(settings.CROWD_CACHE):
- cb = functools.partial(update_commit_callback, crwd)
- yield cb
+ cb = functools.partial(update_commit_callback)
+ yield cb