Skip to content

Commit 6d4aab1

Browse files
committed
Fixed #480 - Sync the order
- Update the requirements.txt - Preserve the column order Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 4d5e1d1 commit 6d4aab1

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

requirements-dev.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
atomicwrites==1.4.0
2-
attrs==21.2.0
32
execnet==1.9.0
43
iniconfig==1.1.1
54
mock==4.0.3

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
attrs==21.2.0
12
boolean.py==3.8
23
click==8.0.1
34
colorama==0.4.4

setup.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ packages=find:
4343
include_package_data = true
4444
zip_safe = false
4545
install_requires =
46+
attrs
4647
jinja2
4748
click
4849
saneyaml

src/attributecode/transform.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ def write_excel(location, data):
455455
wb = openpyxl.Workbook()
456456
ws = wb.active
457457

458-
headers = list(set(itertools.chain.from_iterable(data)))
458+
# Get the header
459+
headers = list(data[0].keys())
459460
ws.append(headers)
460461

461462
for elements in data:

0 commit comments

Comments
 (0)