Skip to content

Commit 966df0a

Browse files
rickynilssonbsipocz
authored andcommitted
Add self.TAP_TABLES
1 parent 8fa6a19 commit 966df0a

File tree

1 file changed

+2
-2
lines changed
  • astroquery/nasa_exoplanet_archive

1 file changed

+2
-2
lines changed

astroquery/nasa_exoplanet_archive/core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ def query_criteria_async(self, table, get_query_payload=False, cache=None, **cri
207207
if cache is None:
208208
cache = self.CACHE
209209

210-
if table in TAP_TABLES:
210+
if table in self.TAP_TABLES:
211211
tap = pyvo.dal.tap.TAPService(baseurl=self.URL_TAP)
212212
# construct query from table and request_payload (including format)
213213
tap_query = self._request_to_sql(request_payload)
@@ -347,7 +347,7 @@ def query_object_async(self, object_name, *, table="ps", get_query_payload=False
347347
"Any filters using the 'where' argument are ignored in ``query_object``. Consider using ``query_criteria`` instead.",
348348
InputWarning,
349349
)
350-
if table in TAP_TABLES:
350+
if table in self.TAP_TABLES:
351351
criteria["where"] = "hostname='{1}' OR {0}name='{1}'".format(prefix, object_name.strip())
352352
else:
353353
criteria["where"] = "{0}hostname='{1}' OR {0}name='{1}'".format(prefix, object_name.strip())

0 commit comments

Comments
 (0)