kanedata / ixbrl-parse

A python library for getting useful data out of ixbrl files.
https://ixbrl-parse.readthedocs.io/
MIT License
63 stars 26 forks source link

Unconverted Data remains #12

Closed Besarion-95 closed 4 years ago

Besarion-95 commented 4 years ago

Hi Dr Kane,

Ive been continuing testing different runs through and found this error. Seems to be related to when the program tries to pull the date out of a specific kind of account: "Unaudited Financial Statements".

Its raised here: core.py: "enddate": s.find(['xbrli:endDate', 'endDate']).text if s.find(['xbrli:endDate', 'endDate']) else None

Then to: context.py: startdate, "%Y-%m-%d").date() if startdate else None

Ending in: _strptime.py: tt, fraction, gmtoff_fraction = _strptime(data_string, format) if len(data_string) != found.end(): 361 raise ValueError("unconverted data remains: %s" % --> 362 data_string[found.end():]) Unconverted-Data.zip

Hope you've been well.

drkane commented 4 years ago

Thanks for the report. Looks like there's a rogue blank space at the end of the datestring.

Should be fixed by e78afd1f2ebe3c927c549adf54f10b078434f05b

(I'm not a Dr by the way - just plain David!)