summaryrefslogtreecommitdiff
path: root/tablib
diff options
context:
space:
mode:
authorGregory Bataille <gregory.bataille@gmail.com>2018-09-12 13:34:55 +0200
committerIuri de Silvio <iurisilvio@gmail.com>2018-09-12 08:34:55 -0300
commitac3cf67620c89f71b73bed891355e8dc0491a541 (patch)
tree0259a0d82bd80123f6c57afae363e2c6213829ba /tablib
parent4c300e65a50eef72b91fa1909c9f68679723955e (diff)
downloadtablib-ac3cf67620c89f71b73bed891355e8dc0491a541.tar.gz
fix(): remove openpyxl warning by properly accessing cells (#296)
Diffstat (limited to 'tablib')
-rw-r--r--tablib/formats/_xlsx.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tablib/formats/_xlsx.py b/tablib/formats/_xlsx.py
index 20f55df..eb921f9 100644
--- a/tablib/formats/_xlsx.py
+++ b/tablib/formats/_xlsx.py
@@ -119,7 +119,7 @@ def dset_sheet(dataset, ws, freeze_panes=True):
row_number = i + 1
for j, col in enumerate(row):
col_idx = get_column_letter(j + 1)
- cell = ws.cell('%s%s' % (col_idx, row_number))
+ cell = ws['%s%s' % (col_idx, row_number)]
# bold headers
if (row_number == 1) and dataset.headers: