{% from "_forms.html" import quickform, parsefield %} {% extends "layout.html" %} {%- macro accordion(title, container_list) -%}
{% for container in container_list %}
{{ title }}: {{container_list|length}}

{% endfor %}
{%- endmacro -%} {%- macro call_indicator(call_dict) -%} {% if call_dict and call_dict['incidents'] %} {{ call_dict['incidents']|length }} {%- if call_dict['status'] and call_dict['status']['name'] == 'unknown' %} {% elif call_dict['status'] and call_dict['status']['name'] == 'done' %}* {% elif call_dict['status'] and call_dict['status']['name'] == 'postponed' %}+ {% elif call_dict['status'] and call_dict['status']['name'] == 'insufficient incidents' %} {% else %}? {% endif %} {% else %} 0 {% endif %} {%- endmacro -%} {% block content %}

Received incidents ({{ use }})

Showing all received incidents for events that are scheduled between {{ from_date }} (change with from_date url argument) and {{ to_date }} (change with to_date url argument) {% if matching %} that match {{ matching }} in their identifier {% endif %}

All events are listed as with their id and incidents count
Id "Scheduled Time-Sport-Event Group-Home Team-Away Team"
Incident count "Create - In progress - Finish - Result"

Markings according to the status:
  • No special mark - Nothing done yet
  • * - Incident successfully triggered an action on the blockchain
  • + - Action is deliberately postponed
  • ? - An error occured, manual checking necessary

{% if events|length > 0 %}

{% for event in events %}
{{ event['id_string'] }}: {{ call_indicator(event['create']) }} - {{ call_indicator(event['in_progress']) }} - {{ call_indicator(event['finish']) }} - {{ call_indicator(event['result']) }}

{% for call in ['create', 'in_progress', 'finish', 'result'] %} {% endfor %}
Create
DT#1
{% if event['create'] and event['create']['status'] and not event['create']['status']['name'] == 'unknown' %}
{{ event['create']['status']['name'] }} {% endif %}
In progress
DT#3
{% if event['in_progress'] and event['in_progress']['status'] and not event['in_progress']['status']['name'] == 'unknown' %}
{{ event['in_progress']['status']['name'] }} {% endif %}
Finish
DT#4
{% if event['finish'] and event['finish']['status'] and not event['finish']['status']['name'] == 'unknown' %}
{{ event['finish']['status']['name'] }} {% endif %}
Result
DT#5
{% if event['result'] and event['result']['status'] and not event['result']['status']['name'] == 'unknown' %}
{{ event['result']['status']['name'] }} {% endif %}
{% if event[call] and event[call]['incidents'] %} {% for provider,incidents_list in event[call]['incidents_per_provider'].items() %} {{ provider }}
    {% for incident in incidents_list %}
  • {{ incident['provider_info']['pushed'] }}: {{ incident['arguments'] }}
  • {% endfor %}
{% endfor %} {% endif %}

{% endfor %}
{% else %} No incidents came in yet. {% endif %} {% endblock %}