@@ -354,15 +354,15 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
354354 resp .raise_for_status ()
355355
356356 eb_deets = self ._request ('GET' ,
357- 'https://data.nrao.edu /archive-service/restapi_get_full_exec_block_details' ,
357+ f' { self . archive_url } /archive-service/restapi_get_full_exec_block_details' ,
358358 params = {'solr_id' : solr_id },
359359 cache = False
360360 )
361361 eb_deets .raise_for_status ()
362362 assert len (self ._session .cookies ) > 0
363363
364364 resp1b = self ._request ('GET' ,
365- 'https://data.nrao.edu /archive-service/restapi_spw_details_view' ,
365+ f' { self . archive_url } /archive-service/restapi_spw_details_view' ,
366366 params = {'exec_block_id' : solr_id .split (":" )[- 1 ]},
367367 cache = False
368368 )
@@ -403,7 +403,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
403403 if instrument in ('VLA' , 'EVLA' ):
404404 post_data ['p_applyTelescopeFlags' ] = apply_flags
405405 casareq = self ._request ('GET' ,
406- 'https://data.nrao.edu /archive-service/restapi_get_casa_version_list' ,
406+ f' { self . archive_url } /archive-service/restapi_get_casa_version_list' ,
407407 cache = False
408408 )
409409 casareq .raise_for_status ()
@@ -413,7 +413,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
413413 post_data ['p_casaHome' ] = casav ['path' ]
414414
415415 presp = self ._request ('POST' ,
416- 'https://data.nrao.edu /rh/submission' ,
416+ f' { self . archive_url } /rh/submission' ,
417417 data = post_data ,
418418 cache = False
419419 )
@@ -434,7 +434,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
434434 wait_url = nextresp .url
435435 nextresp .raise_for_status ()
436436
437- if 'https://data.nrao.edu /rh/requests/' not in wait_url :
437+ if f' { self . archive_url } /rh/requests/' not in wait_url :
438438 raise ValueError (f"Got wrong URL from post request: { wait_url } " )
439439
440440 # to get the right format of response, you need to specify this:
@@ -448,7 +448,7 @@ def _get_data(self, solr_id, email=None, workflow='runBasicMsWorkflow',
448448 if resp .text == 'COMPLETE' :
449449 break
450450
451- return resp
451+ return wait_url
452452
453453
454454
0 commit comments