+
-
+
+
- `
html += score
html += ``
@@ -116,8 +116,22 @@
}" x-html="showScore(score, match.teams[i-1])">
-
+
+
+
diff --git a/tournaments/templates/tournaments/match_cell.html b/tournaments/templates/tournaments/match_cell.html
index 69cd4c0..06b9fc2 100644
--- a/tournaments/templates/tournaments/match_cell.html
+++ b/tournaments/templates/tournaments/match_cell.html
@@ -20,12 +20,11 @@
{% endfor %}
-
- {% if match.started %}
+
+ {% if match.started %}
+
{% for score in team.scores %}
-
- {{ score }}
-
+
{{ score }}
{% endfor %}
{% if match.has_walk_out %}
@@ -33,11 +32,11 @@
{% if team.walk_out %}WO{% endif %}
{% endif %}
+
- {% else %}
-
{{ team.weight }}
- {% endif %}
-
+ {% else %}
+
{{ team.weight }}
+ {% endif %}
{% endfor %}
diff --git a/tournaments/views.py b/tournaments/views.py
index 4e6b368..1dc34fc 100644
--- a/tournaments/views.py
+++ b/tournaments/views.py
@@ -156,7 +156,7 @@ def broadcast_json(request, tournament_id):
def tournament_matches_json(request, tournament_id):
tournament = get_object_or_404(Tournament, pk=tournament_id)
- matches, group_stages = tournament.broadcasted_content()
+ matches, group_stages = tournament.broadcasted_matches_and_group_stages()
live_matches = [match.live_match() for match in matches]
data = json.dumps(live_matches, default=vars)