Skip to content
Snippets Groups Projects
Commit d24a1ffd authored by David Douard's avatar David Douard
Browse files

Fix the default_values handling in BaseDb.copy_to

This needs tests!
parent 65781943
No related branches found
No related tags found
1 merge request!39Fix the default_values handling in BaseDb.copy_to
......@@ -153,7 +153,7 @@ class BaseDb:
for d in items:
if item_cb is not None:
item_cb(d)
line = [escape(d.get(k) or default_values.get(k))
line = [escape(d.get(k, default_values.get(k)))
for k in columns]
f.write(','.join(line))
f.write('\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment