Fixes #2022: Show 0 for zero-value fields on CSV export
This commit is contained in:
parent
81c027e7cf
commit
ef84889a57
|
|
@ -14,7 +14,7 @@ def csv_format(data):
|
||||||
for value in data:
|
for value in data:
|
||||||
|
|
||||||
# Represent None or False with empty string
|
# Represent None or False with empty string
|
||||||
if value in [None, False]:
|
if value is None or value is False:
|
||||||
csv.append('')
|
csv.append('')
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue