[Libreoffice-commits] dev-tools.git: test-bugzilla-files/analyze-logs.py

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Dec 14 06:51:19 PST 2014


 test-bugzilla-files/analyze-logs.py |    3 +++
 1 file changed, 3 insertions(+)

New commits:
commit c8ac3584ba6d905e2d832d50f846bca575a2eb7d
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Dec 14 15:48:46 2014 +0100

    add 0 instead of skipping entry

diff --git a/test-bugzilla-files/analyze-logs.py b/test-bugzilla-files/analyze-logs.py
index 1ae2ddf..8cae85b 100644
--- a/test-bugzilla-files/analyze-logs.py
+++ b/test-bugzilla-files/analyze-logs.py
@@ -70,6 +70,9 @@ def import_csv(filename):
 
 def export_csv(filename, data, reader):
     fieldnames = set(data.keys())
+    for entry in set(reader.fieldnames).difference(data.iterkeys()):
+        data[entry] = 0
+
     if not reader is None:
         fieldnames |= set(reader.fieldnames)
     writer = csv.DictWriter(open(filename, "w"), fieldnames)


More information about the Libreoffice-commits mailing list