Simplify listers Model constructor

the default implementation of SQLAlchemy's declarative API should
work just fine.
This commit is contained in:
David Douard 2018-12-12 18:27:11 +01:00
parent 532fe90df5
commit 5ff8093c5d
3 changed files with 4 additions and 51 deletions

View file

@ -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)