Blame fix-openpyxl-2.5.x-compat-pr-296.patch
|
|
62aef6d |
From 0e51a2d0944022af186d2dcd34c0ab3c47141ba5 Mon Sep 17 00:00:00 2001
|
|
|
62aef6d |
From: =?UTF-8?q?Gr=C3=A9gory=20Bataille?= <gregory.bataille@gmail.com>
|
|
|
62aef6d |
Date: Fri, 11 Aug 2017 10:38:19 +0200
|
|
|
62aef6d |
Subject: [PATCH] fix(): remove openpyxl warning by properly accessing cells
|
|
|
62aef6d |
|
|
|
62aef6d |
---
|
|
|
62aef6d |
tablib/formats/_xlsx.py | 2 +-
|
|
|
62aef6d |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
62aef6d |
|
|
|
62aef6d |
diff --git a/tablib/formats/_xlsx.py b/tablib/formats/_xlsx.py
|
|
|
62aef6d |
index 20f55df..eb921f9 100644
|
|
|
62aef6d |
--- a/tablib/formats/_xlsx.py
|
|
|
62aef6d |
+++ b/tablib/formats/_xlsx.py
|
|
|
62aef6d |
@@ -119,7 +119,7 @@ def dset_sheet(dataset, ws, freeze_panes=True):
|
|
|
62aef6d |
row_number = i + 1
|
|
|
62aef6d |
for j, col in enumerate(row):
|
|
|
62aef6d |
col_idx = get_column_letter(j + 1)
|
|
|
62aef6d |
- cell = ws.cell('%s%s' % (col_idx, row_number))
|
|
|
62aef6d |
+ cell = ws['%s%s' % (col_idx, row_number)]
|
|
|
62aef6d |
|
|
|
62aef6d |
# bold headers
|
|
|
62aef6d |
if (row_number == 1) and dataset.headers:
|