aboutsummaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-04-06 19:21:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-04-06 19:21:10 -0700
commit378947eb098c8e2811a70fb5921ef034a6bca4ca (patch)
tree09aec7079ac278d163b491cd8f85ed7373d8e62e /python
parentc8a422d5c3e9b8153dbb1df12aaafcc0c9c9c9c8 (diff)
downloadfatcat-378947eb098c8e2811a70fb5921ef034a6bca4ca.tar.gz
fatcat-378947eb098c8e2811a70fb5921ef034a6bca4ca.zip
fix reviewer bugs (thanks pylint)
Diffstat (limited to 'python')
-rw-r--r--python/fatcat_tools/reviewers/review_common.py6
1 files changed, 3 insertions, 3 deletions
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