

def truncate_date(self, date_part, date_field):
    return fn.DATE_FORMAT(date_field, MYSQL_DATE_TRUNC_MAPPING[date_field])

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