I have designed a web application; https://canpl.herokuapp.com/
at the beginning of each route I use this function to get the year that the user wants to peruse;
def get_year():
global year
try:
year = request.form['year']
except:
pass
return year
But, I've come to realization that this is going to be a NIGHTMARE for multiple users.
What is the best solution to pass year between each route?