

def _sqlite_date_part(lookup_type, datetime_string):
    assert (datetime_string in DATETIME_LOOKUPS)
    if (not datetime_string):
        return
    dt = format_date_time(datetime_string, SQLITE_DATETIME_FORMATS)
    return getattr(dt, lookup_type)

dataset/ETHPy150Open coleifer/peewee/peewee.py _sqlite_date_part/VarMisuse@14/24 `lookup_type`->`datetime_string`