def flag_video():
    """
    In GET request
        - Flags the video.
        - Redirects to home page.
    """
    if request.method == 'GET':
        if 'user' not in session:
            return redirect('login_form')
        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)
        video_ID = request.args.get('v')
        username = session['user']
        requests.post(url='http://127.0.0.1:8080/flag', data={'video_ID' : video_ID, 'username' : username})
        return redirect(url_for('start'))