def results():
    """
    In GET request
        - Displays the search results.
    """
    if request.method == 'GET':
        logged_in = False
        if 'user' in session:
            logged_in = True
            is_admin = (requests.get(url='http://127.0.0.1:8080/is-admin/{}'.format(session['user'])).content).decode("utf-8") # Done
            if is_admin == "True":
                abort(403)
        search_key = request.args.get('search_query', None)
        if search_key == None:
            return redirect('dashboard')
        results = ((requests.get(url='http://127.0.0.1:8080/fuzzy/{}'.format(search_key))).content).decode("utf-8") # Done
        result_dict = {}
        results = ast.literal_eval(results)
        for ID in results:
            title = ((requests.get(url='http://127.0.0.1:8080/title/{}'.format(ID))).content).decode("utf-8") # Done
            views = ((requests.get(url='http://127.0.0.1:8080/views/{}'.format(ID))).content).decode("utf-8") # Done
            uploader = ((requests.get(url='http://127.0.0.1:8080/uploader/{}'.format(ID))).content).decode("utf-8") # Done
            details = [title, views, uploader]
            result_dict.update({ID : details})
        search_page = ((requests.get(url='http://127.0.0.1:8080/html/{}'.format('search.html'))).content).decode("utf-8")
        return render_template_string(search_page, results = result_dict, search = search_key, logged_in = logged_in)