Jul-26-2020, 07:41 AM
Nevermind,
I found the problem when I was using sorted() it returned a list an jinja (or flask) didn't like that.
so now in the .py file I use this ->
I found the problem when I was using sorted() it returned a list an jinja (or flask) didn't like that.
so now in the .py file I use this ->
import collection ... def result(): if request.method == 'POST': collect = request.form return render_template("result.html",result= collections.OrderedDict(sorted(result.items())))