You need to pass the data to your template, don't you? See the docs here. I'd suggest at least trying the example there and trying to understand how it works. If you don't like the official docs, then Miguel Grinberg has a Flask tutorial here (he also has a book on Flask and I imagine a lot of the content is the same).
Also, your variable names aren't very meaningful - use names that tell you what the thing they're naming is for, because that helps you read and understand the code (
Also, your variable names aren't very meaningful - use names that tell you what the thing they're naming is for, because that helps you read and understand the code (
search1
and b
are not good names).