Skip to content

Commit 9ea7078

Browse files
committed
Fix table cache
1 parent 0e01fde commit 9ea7078

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

astroquery/esasky/core.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ def get_tables(self, *, only_names=True, verbose=False, cache=True):
134134
tables = self._tap.load_tables(only_names=only_names,
135135
include_shared_tables=False,
136136
verbose=verbose)
137+
self._cached_tables = tables
137138
if only_names:
138139
return [t.name for t in tables]
139140
else:
@@ -157,9 +158,8 @@ def get_columns(self, table_name, *, only_names=True, verbose=False):
157158
A list of columns
158159
"""
159160

160-
tables = self._tap.load_tables(only_names=False,
161-
include_shared_tables=False,
162-
verbose=verbose)
161+
tables = self.get_tables(only_names=False,
162+
verbose=verbose)
163163
columns = None
164164
for table in tables:
165165
if str(table.name) == str(table_name):

0 commit comments

Comments
 (0)