Increment Addon
Added to each view function so the counter always gets incremented
import functools from flask import session def inccnt(view): @functools.wraps(view) def wrapped_view(**kwargs): session['count'] += 1 return view(**kwargs) return wrapped_view