Json – TypeError: string indices must be intergers
This is the code that is running in app.py @app.route("/", subdomain="dev") def devhome(): with open("D:/moviewebsite/movielist.json", "r") as f: movielist = json.load(f) goodmovies = [] for item in movielist: if str(item["link"])[-4:] == ".mp4": goodmovies.append(item) else: return render_template("devHome.html", movielist=goodmovies) This is a…