for chan in channels:
    if rChannel.id == channel.id:
        for item in channel.items:
            if item.id == 0:
                rChannel.items.append(item)
Update a record in a table in SQLAlchemy and Python