

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

dataset/ETHPy150Open coleifer/peewee/peewee.py MySQLDatabase.extract_date/VarMisuse@23/31 `date_part`->`date_field`