Skip to content

Commit 9ef6c55

Browse files
committed
Text analytics: use the /metadata to retrieve the status
1 parent 61bc6f1 commit 9ef6c55

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

ravenpackapi/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
from ravenpackapi.utils.dynamic_sessions import DynamicSession
1616

1717
_VALID_METHODS = ('get', 'post', 'put', 'delete', 'patch')
18-
VERSION = '1.0.40'
18+
VERSION = '1.0.41'
1919

2020
logger = logging.getLogger("ravenpack.core")
2121

ravenpackapi/upload/models.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ def __str__(self):
4545

4646
@api_method
4747
def get_status(self):
48-
response = self.api.request('%s/files/%s/status' % (self.api._UPLOAD_BASE_URL, self.file_id))
49-
self.status = response.json()['status']
48+
self.get_metadata(force_refresh=True)
5049
return self.status
5150

5251
@api_method

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from setuptools import setup, find_packages
22

3-
VERSION = '1.0.40'
3+
VERSION = '1.0.41'
44

55
with open('README.rst') as readme_file:
66
readme = readme_file.read()

0 commit comments

Comments
 (0)