(rid)
return redirect(url_for('member.dashboard_page'))
Dashboard Delete Domains:
    This will delete a domain based on url parameters
Dashboard Delete Domains:
    This will delete a domain based on url parameters
Dashboard Delete Domains : This will delete a domain based on url parameters
def delreaction_page(rid):
    '''
    Dashboard Delete Domains:
    This will delete a domain based on url parameters
    '''
    verify = verifyLogin(
        app.config['SECRET_KEY'], app.config['COOKIE_TIMEOUT'], request.cookies)
    if verify:
        user = User()
        user.config = app.config
        user.get('uid', verify, g.rdb_conn)
        if user.status != "active":
            pass
        else:

            appliedcount = 0
            results = r.table('monitors').filter(
                {'uid': user.uid}).run(g.rdb_conn)
            for x in results:
                monitor = Monitor()
                monitor.config = app.config
                monitor.get(x['id'], g.rdb_conn)
                mondata = monitor.data
                if rid in mondata['reactions']:
                    appliedcount = appliedcount + 1

            if appliedcount < 1:
                # Delete the Reaction
                reaction = Reaction(rid)
                reaction.config = app.config
                result = reaction.deleteReaction(user.uid, rid, g.rdb_conn)
                if result:
                    flash('Reaction was successfully deleted.', 'success')
                else:
                    flash('Reaction was not deleted.', 'danger')
            else:
                flash('You must first detach this reaction \
                      from all monitors before deleting.', 'danger')
    return redirect(url_for('member.dashboard_page'))
def delreaction_page ( rid ) : verify = verifyLogin ( app . config [ 'SECRET_KEY' ] , app . config [ 'COOKIE_TIMEOUT' ] , request . cookies ) if verify : user = User ( ) user . config = app . config user . get ( 'uid' , verify , g . rdb_conn ) if user . status != "active" : pass else : appliedcount = 0 results = r . table ( 'monitors' ) . filter ( { 'uid' : user . uid } ) . run ( g . rdb_conn ) for x in results : monitor = Monitor ( ) monitor . config = app . config monitor . get ( x [ 'id' ] , g . rdb_conn ) mondata = monitor . data if rid in mondata [ 'reactions' ] : appliedcount = appliedcount + 1 if appliedcount < 1 : # Delete the Reaction reaction = Reaction ( rid ) reaction . config = app . config result = reaction . deleteReaction ( user . uid , rid , g . rdb_conn ) if result : flash ( 'Reaction was successfully deleted.' , 'success' ) else : flash ( 'Reaction was not deleted.' , 'danger' ) else : flash ( 'You must first detach this reaction \
                      from all monitors before deleting.' , 'danger' ) return redirect ( url_for ( 'member.dashboard_page' ) )