def admin_list_users():
    """
    In GET request
        - Displays a list of users.
    """
    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":
                user_list = (requests.get(url='http://127.0.0.1:8080/user-list').content).decode("utf-8")
                user_list = ast.literal_eval(user_list)
                user_dictionary = {}
                for username in user_list:
                    num_videos = (requests.get(url='http://127.0.0.1:8080/num-videos/{}'.format(username)).content).decode("utf-8")
                    num_flagged = (requests.get(url='http://127.0.0.1:8080/num-flags/{}'.format(username)).content).decode("utf-8")
                    user_dictionary.update({username : [num_videos, num_flagged]})
                users_page = (requests.get(url='http://127.0.0.1:8080/html/{}'.format('user_list.html')).content).decode("utf-8")
                return render_template_string(users_page, user_dict = user_dictionary)
            else:
                abort(403)
        else:
            return redirect(url_for('login_form'))