

def db_value(self, v):
    v = super(BooleanField, v).db_value(v)
    if (v is not None):
        return ((v and 1) or 0)

dataset/ETHPy150Open coleifer/peewee/playhouse/apsw_ext.py BooleanField.db_value/VarMisuse@18/21 `self`->`v`