axa-group / Parsr

Transforms PDF, Documents and Images into Enriched Structured Data

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

parsr.send_document() function in Python's 'parser-client' needs a small update.

ThisisAEmam opened this issue · comments

Version
parsr-client==3.2.3

Issue
the returned dictionary when using 'wait_till_finished=True' was:

return {
  'file': file,
  'config': config,
  'status_code': r.status_code,
  'server_response': r.text
}

It should be:

return {
  'file': file_path,
  'config': config_path,
  'status_code': r.status_code,
  'server_response': r.text
}

As the function takes 'file_path' and 'config_path' as arguments.

I just came across same issue, and it's already fixed in #490

What we would like is to have the changes pushed on PyPi. Is it something that could be done easily?