diff --git a/scripts/review-stats/review-stats.cfg b/scripts/review-stats/review-stats.cfg index 05c7399..2fb5356 100644 --- a/scripts/review-stats/review-stats.cfg +++ b/scripts/review-stats/review-stats.cfg @@ -6,3 +6,4 @@ url = "https://bugzilla.redhat.com/xmlrpc.cgi" <% end %> username = "package-review@lists.fedoraproject.org" password = "<%= packagereviewbugzilla %>" +maxpackages = 5 diff --git a/scripts/review-stats/review-stats.py b/scripts/review-stats/review-stats.py index 6fd1cdf..66db870 100755 --- a/scripts/review-stats/review-stats.py +++ b/scripts/review-stats/review-stats.py @@ -606,6 +606,9 @@ if __name__ == '__main__': options = parse_commandline() verbose = options.verbose config = parse_config(options.configfile) + if config['maxpackages']: + maxpackages = int(config['maxpackages']) + dbprint("Limiting to {} packages".format(maxpackages)) bz = bugzilla.RHBugzilla(url=config['url'], cookiefile=None, user=config['username'], password=config['password']) t = time.time() (bugs, bugdata, usermap) = run_query(bz)