jinja2.exceptions.TemplateSyntaxError: expected token ‘:’, got ‘}’ in html [duplicate]

Solution
{% if role == 1 %}
        
etc... {% endif %}