esc-reporting/esc-report.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
New commits: commit 75071ef3aa7cc9fa9e4cd18e79405c78b2db24cd Author: Xisco Fauli <[email protected]> Date: Fri Sep 8 19:17:41 2017 +0200 Just print 10 names diff --git a/esc-reporting/esc-report.py b/esc-reporting/esc-report.py index f951e02..61d229a 100755 --- a/esc-reporting/esc-report.py +++ b/esc-reporting/esc-report.py @@ -243,15 +243,15 @@ def report_esc_prototype(): txt = ' {:+d} {:+d} ({:+d}) overall)\n many thanks to the top bug squashers:\n'.format( x1, -x2, -x3, x4, x1 - x3, x2 - x4) x = statList['escList']['QAstat']['top15_squashers'] - for name, count in [(k, x[k]) for k in sorted(x, key=x.get, reverse=True)]: + for name, count in [(k, x[k]) for k in sorted(x, key=x.get, reverse=True)][0:10]: txt += ' {:<23} {}\n'.format(name, count) txt += '\n + top 10 bugs reporters:\n' x = statList['escList']['QAstat']['top15_reporters'] - for name, count in [(k, x[k]) for k in sorted(x, key=x.get, reverse=True)]: + for name, count in [(k, x[k]) for k in sorted(x, key=x.get, reverse=True)][0:10]: txt += ' {:<23} {}\n'.format(name, count) txt += '\n + top 10 bugs fixers:\n' x = statList['escList']['QAstat']['top15_fixers'] - for name, count in [(k, x[k]) for k in sorted(x, key=x.get, reverse=True)]: + for name, count in [(k, x[k]) for k in sorted(x, key=x.get, reverse=True)][0:10]: txt += ' {:<23} {}\n'.format(name, count) escPrototype = escPrototype.replace('$<ESC_QA_STATS_UPDATE>', txt) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
