Skip to content

Commit 69e906b

Browse files
authored
Merge pull request #383 from OpenDataServices/ods-bug
Fix another number formatting .ods bug
2 parents 57af89b + e1f58ec commit 69e906b

File tree

4 files changed

+15
-3
lines changed

4 files changed

+15
-3
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
66

77
## [Unreleased]
88

9+
## [0.16.0] - 2021-03-24
10+
11+
### Fixed
12+
13+
- Fix another number formatting .ods bug https://github.com/OpenDataServices/flatten-tool/pull/383
14+
15+
### Changed
16+
17+
- Reduce memory footprint of flattening https://github.com/OpenDataServices/flatten-tool/pull/376
18+
919
## [0.15.4] - 2021-03-08
1020

1121
### Fixed

flattentool/ODSReader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ def readSheet(self, sheet):
8484
"value",
8585
)
8686
)
87-
if "." in str(cell):
87+
if "." in str(value):
8888
arrCells[count] = float(value)
8989
else:
9090
arrCells[count] = int(value)

flattentool/tests/test_input_SpreadsheetInput.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,9 @@ def test_xlsx_input_types(self):
196196
"colFloat": 1000.2,
197197
"colFloatComma": 1000.2,
198198
"colDate": datetime.datetime(2020, 3, 5),
199-
"colDateTime": datetime.datetime(2020, 2, 7, 16, 41, 0, 1),
199+
"colDateTime": datetime.datetime(
200+
2020, 2, 7, 16, 41, 0, 1 if sys.version_info < (3, 6) else 0
201+
),
200202
None: None,
201203
}
202204
]

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def run(self):
4343

4444
setup(
4545
name="flattentool",
46-
version="0.15.4",
46+
version="0.16.0",
4747
author="Open Data Services",
4848
author_email="[email protected]",
4949
packages=["flattentool"],

0 commit comments

Comments
 (0)