esc-reporting/esc-report.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 767c754406bca2e52008d0d2d1b3761408694b52 Author: jan Iversen <j...@libreoffice.org> Date: Thu Apr 27 14:35:49 2017 +0200 added tuesday schedule for bug-metrics diff --git a/esc-reporting/esc-report.py b/esc-reporting/esc-report.py index a1462fc..2a6613e 100755 --- a/esc-reporting/esc-report.py +++ b/esc-reporting/esc-report.py @@ -550,6 +550,10 @@ def gen_rowRegression(useHigh=False): def report_flatODF(): global statList, cfg + if cfg['nowDate'].strftime('%w') != '2': + # only generate un tuesdays + return + filename = cfg['homedir'] + 'bug-metrics.fods' fp = open(filename, encoding='utf-8') text = fp.read() @@ -583,11 +587,11 @@ def report_flatODF(): else: raise Exception("unknown sheet in bug-metrics: " + text[startIndex:startIndex+20]) - fp = open(cfg['homedir'] + 'bug-test.fods', 'w', encoding='utf-8') + fp = open(filename, 'w', encoding='utf-8') print(text, file=fp) fp.close() data = 'ESC bug_metric.fods, based on stats.json from '+statList['addDate'] - return {'title': data, 'mail': 'mentor...@documentfoundation.org', 'attach': '/tmp/esc_flatODF.fods', 'file' : '/tmp/esc_flatODF_body'} + return {'title': data, 'mail': 'mentor...@documentfoundation.org', 'attach': filename, 'file' : '/tmp/esc_flatODF_body'} def report_ui(): _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits