Remove duplicate ReviewBot.do_project(). (#621)
This commit is contained in:
parent
7431af4a72
commit
0ec78beb93
@ -438,14 +438,6 @@ class CommandLineInterface(cmdln.Cmdln):
|
|||||||
|
|
||||||
self.runner(work, opts.interval)
|
self.runner(work, opts.interval)
|
||||||
|
|
||||||
@cmdln.option('-n', '--interval', metavar="minutes", type="int", help="periodic interval in minutes")
|
|
||||||
def do_project(self, subcmd, opts, project, typename):
|
|
||||||
def work():
|
|
||||||
self.checker.set_request_ids_project(project, typename)
|
|
||||||
self.checker.check_requests()
|
|
||||||
|
|
||||||
self.runner(work, opts.interval)
|
|
||||||
|
|
||||||
def runner(self, workfunc, interval):
|
def runner(self, workfunc, interval):
|
||||||
""" runs the specified callback every <interval> minutes or
|
""" runs the specified callback every <interval> minutes or
|
||||||
once if interval is None or 0
|
once if interval is None or 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user