Skip to content

Commit

Permalink
1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
roedoejet committed Sep 27, 2017
1 parent 3a86601 commit 2c0e7ba
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
3 changes: 3 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
* Version 1.2.2
* Fiexed a typo for xlsx parser

* Version 1.2
* Fixed a silly issue causing pptx conversions to take far too long, they are faster now.
* Revised txt_parser error with new line breaks
Expand Down
2 changes: 1 addition & 1 deletion convertextract/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .parsers import process

VERSION = "1.1"
VERSION = "1.2.2"

NAME = "convertextract"
14 changes: 7 additions & 7 deletions convertextract/parsers/xlsx_parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,26 +31,26 @@ def extract(self, filename, **kwargs):
if isinstance(value, (int, float, long)):
value = unicode(value)
if col.column == path.upper():
for kv in cors:
value = value.replace(kv["from"],kv["to"])
for kv in cors:
value = value.replace(kv["from"], kv["to"])
new_output.append(value)
col.value = value
wb.save(converted_filename)
wb.save(converted_filename)
else:
for row in ws:
for row in ws:
for col in row:
value = col.value
if value != None:
if isinstance(value, (int, float, long)):
value = unicode(value)
for kv in cors:
value = value.replace(kv["from"],kv["to"])
value = value.replace(kv["from"], kv["to"])
elif not isinstance(value, str):
for kv in cors:
value = value.replace(kv["from"],kv["to"])
value = value.replace(kv["from"], kv["to"])
new_output.append(value)
col.value = value
wb.save(converted_filename)
wb.save(converted_filename)
else:
for row in ws:
for col in row:
Expand Down

0 comments on commit 2c0e7ba

Please sign in to comment.