

def _insert_with_loop(self):
    id_list = []
    last_id = None
    return_id_list = self._return_id_list
    for row in return_id_list._rows:
        last_id = InsertQuery(self.model_class, row).upsert(self._upsert).execute()
        if return_id_list:
            id_list.append(last_id)
    if return_id_list:
        return id_list
    else:
        return last_id

dataset/ETHPy150Open coleifer/peewee/peewee.py InsertQuery._insert_with_loop/VarMisuse@28/43 `self`->`return_id_list`