See3D/views.py
def delete_request():
    """Delete the specified request if it belongs to the currently logged in user."""
    current_request = Request.query.get(int(session['current_request_id']))

    if current_request.user_id == current_user.id:
        db.session.delete(current_request)
        db.session.commit()

    return redirect(url_for('profile'))
Delete the specified request if it belongs to the currently logged in user.
Delete the specified request if it belongs to the currently logged in user.
Delete the specified request if it belongs to the currently logged in user .
def delete_request():
    current_request = Request.query.get(int(session['current_request_id']))
    if current_request.user_id == current_user.id:
        db.session.delete(current_request)
        db.session.commit()
    return redirect(url_for('profile'))
def delete_request ( ) : current_request = Request . query . get ( int ( session [ 'current_request_id' ] ) ) if current_request . user_id == current_user . id : db . session . delete ( current_request ) db . session . commit ( ) return redirect ( url_for ( 'profile' ) )
Delete the specified request if it belongs to the currently logged in user.
Delete the specified request if it belongs to the currently logged in user .
"""Delete the specified request if it belongs to the currently logged in user."""