Make HTML output work again
This commit is contained in:
parent
f944aabc38
commit
b79a7dcd49
@ -11,7 +11,7 @@ class BatchWorker:
|
|||||||
self.l = logging.getLogger("solo_turnier.batch")
|
self.l = logging.getLogger("solo_turnier.batch")
|
||||||
self.config = config
|
self.config = config
|
||||||
|
|
||||||
def run(self, removeFilteredParicipants=True):
|
def run(self, removeFilteredParicipants=True) -> solo_turnier.types.Stage5:
|
||||||
self.l.debug(self.config.__dict__)
|
self.l.debug(self.config.__dict__)
|
||||||
|
|
||||||
locator = solo_turnier.html_locator.HtmlLocator()
|
locator = solo_turnier.html_locator.HtmlLocator()
|
||||||
|
@ -104,4 +104,6 @@ class GroupParser:
|
|||||||
]
|
]
|
||||||
|
|
||||||
def getGroupsAsSortedList(self, groups) -> list[Group]:
|
def getGroupsAsSortedList(self, groups) -> list[Group]:
|
||||||
return [x for x in self.getGroups() if x in groups]
|
mainGroups = [x for x in self.getGroups() if x in groups]
|
||||||
|
additionalGroups = set(groups).difference(mainGroups)
|
||||||
|
return mainGroups + list(additionalGroups)
|
||||||
|
@ -22,6 +22,12 @@
|
|||||||
color: gray;
|
color: gray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-summary .no-finalist-dance {
|
||||||
|
color: gray;
|
||||||
|
text-decoration-style: solid;
|
||||||
|
text-decoration-line: line-through;
|
||||||
|
}
|
||||||
|
|
||||||
@media print {
|
@media print {
|
||||||
@page {
|
@page {
|
||||||
size: landscape;
|
size: landscape;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{# <h1>Finalauswertung Solo-Turniere</h1> #}
|
{# <h1>Finalauswertung Solo-Turniere</h1> #}
|
||||||
{% for group in data.groups %}
|
{% for group in data.resultsPerGroup %}
|
||||||
{% block groupBlk scoped %}
|
{% block groupBlk scoped %}
|
||||||
<div class="section">
|
<div class="section">
|
||||||
{% if group is none %}
|
{% if group is none %}
|
||||||
@ -21,11 +21,11 @@
|
|||||||
<table class="tab-summary">
|
<table class="tab-summary">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Teilnehmer</th>
|
<th>Teilnehmer</th>
|
||||||
{% for dance in data.results[group].dances %}
|
{% for dance in data.resultsPerGroup[group].dances %}
|
||||||
<th>{{ dance }}</th>
|
<th>{{ dance }}</th>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</tr>
|
</tr>
|
||||||
{% set activeGroup = data.results[group].results %}
|
{% set activeGroup = data.resultsPerGroup[group].resultsInGroup %}
|
||||||
{% for participant, results in activeGroup|dictsort() %}
|
{% for participant, results in activeGroup|dictsort() %}
|
||||||
{% block participantGrp scoped %}
|
{% block participantGrp scoped %}
|
||||||
{% set rowCls = "" %}
|
{% set rowCls = "" %}
|
||||||
@ -35,16 +35,17 @@
|
|||||||
{% if participant.finalist or not onlyFinalists %}
|
{% if participant.finalist or not onlyFinalists %}
|
||||||
<tr class="{{ rowCls }}">
|
<tr class="{{ rowCls }}">
|
||||||
<td>{{ participant.name }} ({{ participant.id }})</td>
|
<td>{{ participant.name }} ({{ participant.id }})</td>
|
||||||
{% for dance in data.results[group].dances %}
|
{% for dance in data.resultsPerGroup[group].dances %}
|
||||||
{% block danceResult scoped %}
|
{% block danceResult scoped %}
|
||||||
{% set res = activeGroup[participant][loop.index0] %}
|
{% set res = activeGroup[participant][loop.index0] %}
|
||||||
<td>
|
<td>
|
||||||
{% if res is not none %}
|
{% if res is not none %}
|
||||||
{% if not participant.finalist %}
|
{% if not participant.finalist %}
|
||||||
Kein/e Finalist/in
|
Kein/e Finalist/in <br />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{{ res.getNativePlace() }}
|
<span class="{% if not res.finalist %}no-finalist-dance{% endif %}">
|
||||||
({{ res.nativeClass }}) <br />
|
{{ res.getNativePlace() }} ({{ res.nativeClass }}) <br />
|
||||||
|
</span>
|
||||||
<span class="competition-place">
|
<span class="competition-place">
|
||||||
{{ res.place }} in {{ res.competitionClass }}
|
{{ res.place }} in {{ res.competitionClass }}
|
||||||
</span>
|
</span>
|
||||||
|
Loading…
Reference in New Issue
Block a user