Skip to content

Commit bb3b9da

Browse files
committed
parameters will be passed as JSON objects only when accessing the PANSTARRS API
1 parent 2ad220b commit bb3b9da

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

astroquery/mast/collections.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,11 @@ def query_criteria_async(self, catalog, *, pagesize=None, page=None, **criteria)
313313
raise InvalidQueryError("At least one non-positional criterion must be supplied.")
314314
params["filters"] = filters
315315

316-
return self._current_connection.service_request_async(service, params, pagesize=pagesize, page=page)
316+
# Parameters will be passed as JSON objects only when accessing the PANSTARRS API
317+
use_json = True if catalog.lower() == 'panstarrs' else False
318+
319+
return self._current_connection.service_request_async(service, params, pagesize=pagesize, page=page,
320+
use_json=use_json)
317321

318322
@class_or_instance
319323
def query_hsc_matchid_async(self, match, *, version=3, pagesize=None, page=None):

0 commit comments

Comments
 (0)