Skip to content

Commit 2b8517a

Browse files
Merge pull request #12 from unmand-systems/add-position-option-to-exfil-poll
add position option to exfil poll
2 parents 7cb43fa + b8727b6 commit 2b8517a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def readme():
88
return f.read()
99

1010
setuptools.setup(name='unmand',
11-
version='2.1.1',
11+
version='2.1.2',
1212
description='Helper library for consuming the Unmand API',
1313
url='https://github.com/unmand-systems/unmand-python',
1414
author='Josiah Khor',

src/unmand/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def queue(self, file_data, guid=None):
128128

129129
return Extraction(None, 'FAILED')
130130

131-
def poll(self, extraction, max_tries=100, interval=10.0, suppress_output=False, with_probabilities=False): # pylint: disable=too-many-branches
131+
def poll(self, extraction, max_tries=100, interval=10.0, suppress_output=False, with_probabilities=False, with_positions=False): # pylint: disable=too-many-branches
132132
"""Check if prediction is done"""
133133

134134
# Helper function
@@ -145,7 +145,7 @@ def estimate_extraction_time(bounding_box_count):
145145

146146
result = requests.get(
147147
f'{self.url}extractions/{extraction_guid}/data', auth=TokenAuth(self.token),
148-
params={'probabilities': with_probabilities}
148+
params={'probabilities': with_probabilities, 'positions': with_positions}
149149
)
150150

151151
if result.status_code == requests.codes.ok: # pylint: disable=no-member

0 commit comments

Comments
 (0)