Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 8, 2024
1 parent 0edb732 commit 640df30
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/valis/routes/query.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ async def parent_catalogs(self):
"""Return a list of available parent catalog tables."""

columns = catalogdb.SDSS_ID_To_Catalog._meta.fields.keys()

# In sdss_id_to_catalog table, the parent catalog columns are named
# as 'parent_catalog__parent_catalog_pk_column'.
catalogs = [col.split('__')[0] for col in columns if '__' in col]

return sorted(catalogs)
Expand Down

0 comments on commit 640df30

Please sign in to comment.