

@classmethod
def get(cls, *query, **kwargs):
    sq = cls.select().naive()
    if query:
        sq = sq.where(*query)
    if kwargs:
        sq = sq.filter(**kwargs)
    return sq.get()

dataset/ETHPy150Open coleifer/peewee/peewee.py Model.get/original