Manage and reset Man of the Match and Dick of the Day counts
{% with messages = get_flashed_messages(with_categories=true) %} {% if messages %} {% for category, message in messages %}Use these controls to reset MOTM/DotD counts for specific fixtures or all data.
Reset motmtotal, dotdtotal, assiststotal, goalstotal columns
Reset all MOTM/DotD data including fixture-specific columns
Update stored totals to match calculated values from fixture columns
| Player # | Player Name | MOTM Total | DotD Total | Goals Total | Assists Total | {% for date in fixture_dates %}MOTM {{ date }} | DotD {{ date }} | {% endfor %}
|---|---|---|---|---|---|---|---|
| {{ player.playernumber }} | {{ player.playername }} | {{ player.calculated_motmtotal or 0 }} {% if player.motmtotal != player.calculated_motmtotal %} (stored: {{ player.motmtotal or 0 }}) {% endif %} | {{ player.calculated_dotdtotal or 0 }} {% if player.dotdtotal != player.calculated_dotdtotal %} (stored: {{ player.dotdtotal or 0 }}) {% endif %} | {{ player.goalstotal or 0 }} | {{ player.assiststotal or 0 }} | {% for date in fixture_dates %}{% set motm_col = 'motm_' + date %} {% set dotd_col = 'dotd_' + date %} {% if player[motm_col] and player[motm_col] > 0 %} {{ player[motm_col] }} {% else %} 0 {% endif %} | {% if player[dotd_col] and player[dotd_col] > 0 %} {{ player[dotd_col] }} {% else %} 0 {% endif %} | {% endfor %}
There is no data in the _hkfc_c_motm table. This might be because no votes have been cast yet.
Drop unwanted columns from the _hkfc_c_motm table.
The following fixture dates have MOTM/DotD columns in the database:
{{ date }} - Columns: motm_{{ date }}, dotd_{{ date }}No fixture-specific MOTM/DotD columns were found in the database.