fix various problem reported by users

This commit is contained in:
Yannik Schmidt
2021-09-06 10:57:01 +02:00
parent 6a2ff6a72f
commit 5d98016040
3 changed files with 19 additions and 10 deletions

View File

@@ -11,12 +11,16 @@
{{ positions[x] }}
</div>
<div class="col-sm"
{% if requests[leftP][x] | int >= 4 %}style="background: red;"{% endif %}>
{{ leftP }} ({{ ratings[x] }})
{% if reqJson.get(leftP) and reqJson.get(leftP)[x] | int >= 4 %}
style="background: red;"
{% endif %}>
{{ leftP }} ({{ ratings[x] }})
</div>
<div class="col-sm"
{% if requests[rightP][x] | int >= 4 %}style="background: red;"{% endif %}>
{{ rightP }} ({{ ratings[x+5] }})
{% if reqJson.get(rightP) and reqJson.get(rightP)[x] | int >= 4 %}
style="background: red;"
{% endif %}>
{{ rightP }} ({{ ratings[x+5] }})
</div>
</div>
{% endfor %}