Simplify listers Model constructor
the default implementation of SQLAlchemy's declarative API should work just fine.
This commit is contained in:
parent
532fe90df5
commit
5ff8093c5d
3 changed files with 4 additions and 51 deletions
|
@ -13,8 +13,4 @@ class GitHubModel(IndexingModelBase):
|
|||
|
||||
uid = Column(Integer, primary_key=True)
|
||||
indexable = Column(Integer, index=True)
|
||||
fork = Column(Boolean)
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
self.fork = kwargs.pop('fork', False)
|
||||
super().__init__(*args, **kwargs)
|
||||
fork = Column(Boolean, default=False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue