Skip to content

Commit

Permalink
base.py: comments for get_model()
Browse files Browse the repository at this point in the history
  • Loading branch information
astronomygupta committed Jul 26, 2024
1 parent 0bbb665 commit 239b1e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions python/target_selection/cartons/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ def build_query(self, version_id, query_region=None):
def get_model(self):
"""Returns a Peewee model for the temporary table using reflection."""

# peewee has a Model class, BaseModel class, and ModelBase class.
# The below Model class is different from peewee Model class
# The below BaseModel class is from sdssdb.peewee.
# It is different from peewee BaseModel class.
class Model(BaseModel):
catalogid = peewee.BigIntegerField(primary_key=True)
selected = peewee.BooleanField()
Expand Down

0 comments on commit 239b1e8

Please sign in to comment.