diff options
| author | Iuri de Silvio <iurisilvio@gmail.com> | 2013-09-16 10:28:50 -0300 |
|---|---|---|
| committer | Iuri de Silvio <iurisilvio@gmail.com> | 2013-09-16 10:28:50 -0300 |
| commit | 5ffcfd56f24de088cd9e7cd54efeb5e3ef92c5c6 (patch) | |
| tree | 760c4e30b2c4e759ef353113ad6c958e557379e3 /tablib | |
| parent | 2c14486c33d4cd3a4411bfa3cecf2302fdd8453f (diff) | |
| download | tablib-5ffcfd56f24de088cd9e7cd54efeb5e3ef92c5c6.tar.gz | |
Remove XLSX empty sheet on export_book
Diffstat (limited to 'tablib')
| -rw-r--r-- | tablib/formats/_xlsx.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tablib/formats/_xlsx.py b/tablib/formats/_xlsx.py index f80f1a7..8aca6b7 100644 --- a/tablib/formats/_xlsx.py +++ b/tablib/formats/_xlsx.py @@ -41,6 +41,7 @@ def export_book(databook): """Returns XLSX representation of DataBook.""" wb = Workbook() + wb.worksheets = [] ew = ExcelWriter(workbook = wb) for i, dset in enumerate(databook._datasets): ws = wb.create_sheet() |
