Skip to content

Commit e25f207

Browse files
committed
Fixed the transform code for xlsx and json
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent c11496c commit e25f207

File tree

4 files changed

+10
-4
lines changed

4 files changed

+10
-4
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
==============================
22
Changelog
3+
2023-03-07
4+
Release 7.2.1
5+
6+
* Fixed the transform code for xlsx and json
7+
8+
39
2022-10-24
410
Release 7.2.0
511

about.ABOUT

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
about_resource: .
22
name: AboutCode-toolkit
3-
version: 7.2.0
3+
version: 7.2.1
44
author: Jillian Daguil, Chin Yeung Li, Philippe Ombredanne, Thomas Druez
55
copyright: Copyright (c) nexB Inc.
66
description: |

src/attributecode/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
import saneyaml
2222

23-
__version__ = '7.2.0'
23+
__version__ = '7.2.1'
2424

2525
__about_spec_version__ = '3.2.3'
2626

src/attributecode/cmd.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -803,9 +803,9 @@ def transform(location, output, configuration, quiet, verbose): # NOQA
803803
if location.endswith('.csv'):
804804
new_data, errors = transform_csv(location)
805805
elif location.endswith('.json'):
806-
errors = transform_json(location)
806+
new_data, errors = transform_json(location)
807807
elif location.endswith('.xlsx'):
808-
errors = transform_excel(location)
808+
new_data, errors = transform_excel(location)
809809

810810
if not errors:
811811
updated_data, errors = transform_data(new_data, transformer)

0 commit comments

Comments
 (0)