Skip to content

Commit ba1a7b2

Browse files
authored
Merge pull request #109 from dynata/bugfix/get-status-url
Fixed issue with get_archive_status calling the wrong service while t…
2 parents d04e06b + 6c3d4b7 commit ba1a7b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

CmixAPIClient/api.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -375,8 +375,9 @@ def get_archive_status(self, survey_id, archive_id, layout_id):
375375
raise CmixError(
376376
'Error while updating archie status: CMIX archive ID is None. Pop Archive ID: {}'.format(archive_id)
377377
)
378+
base_url = CMIX_SERVICES['survey'][self.url_type]
378379
archive_url = '{}/surveys/{}/data-layouts/{}/archives/{}'.format(
379-
CMIX_SERVICES['survey']["BASE_URL"],
380+
base_url,
380381
survey_id,
381382
layout_id,
382383
archive_id # The archive ID on CMIX.

0 commit comments

Comments
 (0)