I would like to start Flask app with empty dictionary which later is populated by users, however, when I initialize it like this:
@app.route("/")
def index():
highscore = {}
session["highscore"] = highscore
return render_template("index.html", user = "", highscore = highscore)
it resets to empty whenever user goes back to or enters index.html. Can I initialize dictionary somewhere else and only once app is deployed?