def flagged_videos():
    """
    In GET request
        - Displays all the flagged videos.
    """
    if request.method == 'GET':
        if 'user' in session:
            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":
                flagged_IDs = ((requests.get(url='http://127.0.0.1:8080/flagged')).content).decode("utf-8") # Done
                flagged_IDs = ast.literal_eval(flagged_IDs)
                flagged_dictionary = {}
                for ID in flagged_IDs:
                    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
                    flagger = ((requests.get(url='http://127.0.0.1:8080/flagger/{}'.format(ID))).content).decode("utf-8") # Done
                    flagged_dictionary.update({ID : [title, views, uploader, flagger]})
                flagged_page = ((requests.get(url='http://127.0.0.1:8080/html/{}'.format('flagged.html'))).content).decode("utf-8") # Done
                return render_template_string(flagged_page, flagged_videos = flagged_dictionary)
            else:
                abort(403)
        else:
            return redirect(url_for('login_form'))