Skip to content

Commit 45b93c0

Browse files
authored
Merge pull request #3123 from keflavich/issue3121
BUG: Fix SDSS download caching
2 parents c19359b + ad2e207 commit 45b93c0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGES.rst

+2
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ sdss
111111

112112
- Support new SDSS-V DR18 access URLs. [#3017]
113113

114+
- Fix download caching. [#3123]
115+
114116
simbad
115117
^^^^^^
116118

astroquery/sdss/core.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,8 @@ def query_region_async(self, coordinates, *, radius=None,
345345
region=True,
346346
field_help=field_help,
347347
get_query_payload=True,
348-
data_release=data_release)
348+
data_release=data_release,
349+
cache=cache)
349350

350351
if width is not None:
351352
width = u.Quantity(width, u.degree).value
@@ -774,6 +775,7 @@ def get_spectra_async(self, *, coordinates=None, radius=2. * u.arcsec,
774775

775776
link = linkstr.format(**format_args)
776777
results.append(commons.FileContainer(link,
778+
cache=cache,
777779
encoding='binary',
778780
remote_timeout=timeout,
779781
show_progress=show_progress))

0 commit comments

Comments
 (0)