leaper: reset automatic_submission to False on each review.

Perhaps this should be handled on a larger scale where initial variable
states are not set in __init__ but rather in special method or reset in
some manor.
This commit is contained in:
Jimmy Berry 2017-04-10 23:17:09 -05:00
parent 546fe96c74
commit 5f77f48437

View File

@ -125,6 +125,7 @@ class Leaper(ReviewBot.ReviewBot):
def check_source_submission(self, src_project, src_package, src_rev, target_project, target_package):
super(Leaper, self).check_source_submission(src_project, src_package, src_rev, target_project, target_package)
self.automatic_submission = False
if src_project == target_project and src_package == target_package:
self.logger.info('self submission detected')