List of players from 2018/19 season - Python Flask MySQL app

{% with messages = get_flashed_messages() %} {% if messages %}

{% endif %} {% endwith %}

{%- for column in columns %} {% if column['Field'] == "playerNumber" %} {% elif column['Field'] == "playerName" %} {% elif column['Field'] == "appearances" %} {% elif column['Field'] == "goals" %} {% elif column['Field'].startswith('22381goal') %} {% else %} {%- for match in matchesList %} {% if column['Field'].startswith(match) %} {% if column['Field'].endswith('played') %} {% elif column['Field'].endswith('goals') %} {% elif column['Field'].endswith('capt') %} {% endif %} {% endif %} {% endfor %} {% endif %} {%- endfor %} {%- for row in rows %} {%- for column in columns %} {%- endfor %} {%- endfor %}
Player Number
Player Name
Appearances
Goals
NBC A goals
{{ matches[match] }} Played
{{ matches[match] }} Goals
{{ matches[match] }} Captain
{{ row[column['Field']] }}
Home