

def post(self, id):
    appt = reminders.db.session.query(Appointment).filter_by(id=id).one()
    reminders.db.session.delete(self)
    reminders.db.session.commit()
    return redirect(url_for('appointment.index'), code=303)

dataset/ETHPy150Open TwilioDevEd/appointment-reminders-flask/views/appointment.py AppointmentResourceDelete.post/VarMisuse@44/51 `appt`->`self`