From 378947eb098c8e2811a70fb5921ef034a6bca4ca Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 6 Apr 2019 19:21:10 -0700 Subject: fix reviewer bugs (thanks pylint) --- python/fatcat_tools/reviewers/review_common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'python') diff --git a/python/fatcat_tools/reviewers/review_common.py b/python/fatcat_tools/reviewers/review_common.py index 239ce209..bb36d4e3 100644 --- a/python/fatcat_tools/reviewers/review_common.py +++ b/python/fatcat_tools/reviewers/review_common.py @@ -89,7 +89,7 @@ class ReviewBot: eg = self.api.get_editgroup(editgroup_id) annotation = self.review_editgroup(eg) if annotate: - api.create_editgroup_annotation(eg.editgroup_id, annotation) + self.api.create_editgroup_annotation(eg.editgroup_id, annotation) return annotation def run(self, since=None): @@ -198,9 +198,9 @@ class ReviewBot: for check in self.checks: if entity_type in check.scope: # hack-y python munging - get_method = getattr(api, "get_{}_rev".format(entity_type)) + get_method = getattr(self.api, "get_{}_rev".format(entity_type)) check_method = getattr(check, "check_{}".format(entity_type)) - entity = get_method(api, edit.rev) + entity = get_method(self.api, edit.rev) result = check_method(check, edit, entity) result.rev = edit.rev result.ident = edit.ident -- cgit v1.2.3