Skip to content

Commit

Permalink
use_json variable simplified
Browse files Browse the repository at this point in the history
  • Loading branch information
jaymedina committed May 5, 2023
1 parent c35da32 commit 2033476
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion astroquery/mast/collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ def query_criteria_async(self, catalog, *, pagesize=None, page=None, **criteria)
params["filters"] = filters

# Parameters will be passed as JSON objects only when accessing the PANSTARRS API
use_json = True if catalog.lower() == 'panstarrs' else False
use_json = catalog.lower() == 'panstarrs'

return self._current_connection.service_request_async(service, params, pagesize=pagesize, page=page,
use_json=use_json)
Expand Down

0 comments on commit 2033476

Please sign in to comment.