esc-reporting/esc-report.py |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit ea1d9b306e4adb5b80c1224305bc213c344079b2
Author: jan Iversen <j...@libreoffice.org>
Date:   Thu May 11 16:06:45 2017 +0200

    esc-report, solved mail problem

diff --git a/esc-reporting/esc-report.py b/esc-reporting/esc-report.py
index 7d6d5a3..fc2c1f6 100755
--- a/esc-reporting/esc-report.py
+++ b/esc-reporting/esc-report.py
@@ -466,8 +466,14 @@ def report_bug_metrics():
     fp.close()
     os.system('cd /tmp/bugs; zip ' + filename + ' *')
     os.system('cd ' + cfg['homedir'] + 'bug-metrics; git add *; git commit -m 
\'new version ' + statList['addDate'] + '\'')
+
+    fileBody='/tmp/esc_odf.txt'
+    fp = open(fileBody, 'w', encoding='utf-8')
+    print('the weekly bug-metrics.odf\nhave fun', file=fp)
+    fp.close()
+
     data = 'ESC bug_metric.fods, based on stats.json from '+statList['addDate']
-    return {'title': data, 'mail': 'mentor...@documentfoundation.org', 
'attach': filename, 'file' : '/tmp/esc_flatODF_body'}
+    return {'title': data, 'mail': 'mentor...@documentfoundation.org', 
'attach': filename, 'file' : fileBody}
 
 
 
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to