def accept_friend_request(): new_friend = request.query['friend'] my_username = login_check() connection = pymongo.Connection(connection_string, safe=True) friend.accept_friend_request(connection, my_username, new_friend) redirect("/main")
def search_resultts(): new_friend = bottle.request.query['friend'] my_username = login_check() connection = pymongo.Connection(connection_string, safe=True) friend.accept_friend_request(connection, my_username, new_friend) bottle.redirect("/main")