I am attempting to create a traffic light (good / bad) function within my application. I am using flask and jinja templating.
I have my function below and I set a pre