

def extract_date(self, date_part, date_field):
    return fn.EXTRACT(Clause(date_part, R('FROM'), self))

dataset/ETHPy150Open coleifer/peewee/peewee.py Database.extract_date/VarMisuse@28/40 `date_field`->`self`