Skip to content

Commit

Permalink
Use Field in ParentCatalogModel
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Aug 8, 2024
1 parent 071b55c commit e7616eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/valis/db/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ class CatalogModel(PeeweeBase):
class ParentCatalogModel(PeeweeBase):
"""Pydantic model for parent catalog information """

sdss_id: int
catalogid: int
sdss_id: Annotated[int, Field(description='The sdss_id associated with the parent catalogue data')]
catalogid: Annotated[int, Field(description='The catalogid associated with the parent catalogue data')]

# This model is usually instantiated with a dictionary of all the parent
# catalogue columns so we allow extra fields.
Expand Down

0 comments on commit e7616eb

Please sign in to comment.