Parcourir la source

Bugfix: headers were missing in monthly reports.

pitchum il y a 8 ans
Parent
commit
22f3ca8992
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      ccoop_resplit.py

+ 1 - 0
ccoop_resplit.py

@@ -95,6 +95,7 @@ class CsvStatementParser(object):
             fname = "releve_{0}.csv".format(curmonth)
             outfile = open(os.path.join(outputdir, fname), 'w')
             writer = csv.DictWriter(outfile, self.fieldnames, delimiter=';')
+            writer.writeheader()
             return outfile, writer
         outfile, writer = __openfile__(curmonth)
         writer = csv.DictWriter(outfile, self.fieldnames, delimiter=';')