Skip to content

Commit 4bb8d70

Browse files
jaymedinaburnout87
authored andcommitted
rewriting services attriutes so they can be patched
1 parent b40c694 commit 4bb8d70

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

astroquery/mast/services.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,16 @@ class ServiceAPI(BaseQuery):
101101
Should be used to facilitate all microservice API queries.
102102
"""
103103

104+
SERVICE_URL = conf.server
105+
REQUEST_URL = conf.server + "/api/v0.1/"
106+
SERVICES = {}
107+
104108
def __init__(self, session=None):
105109

106110
super().__init__()
107111
if session:
108112
self._session = session
109113

110-
self.REQUEST_URL = conf.server + "/api/v0.1/"
111-
self.SERVICES = {}
112-
113114
self.TIMEOUT = conf.timeout
114115

115116
def set_service_params(self, service_dict, service_name="", server_prefix=False):
@@ -128,7 +129,7 @@ def set_service_params(self, service_dict, service_name="", server_prefix=False)
128129
vs. the default of mast.stsci.edu/service_name
129130
"""
130131

131-
service_url = conf.server
132+
service_url = self.SERVICE_URL
132133
if server_prefix:
133134
service_url = service_url.replace("mast", f"{service_name}.mast")
134135
else:

0 commit comments

Comments
 (0)