attempt to fix #2

shop
Laurent 8 months ago
parent e8344951f8
commit ff3f2e8490
  1. 4
      tournaments/views.py

@ -361,8 +361,8 @@ def tournament_matches_json(request, tournament_id):
live_matches_dicts = [match.live_match().to_dict() for match in matches] live_matches_dicts = [match.live_match().to_dict() for match in matches]
# data = json.dumps(live_matches, default=vars) data = json.dumps(live_matches_dicts, default=vars)
return HttpResponse(live_matches_dicts, content_type='application/json') return HttpResponse(data, content_type='application/json')
def tournament_prog_json(request, tournament_id): def tournament_prog_json(request, tournament_id):
tournament = get_object_or_404(Tournament, pk=tournament_id) tournament = get_object_or_404(Tournament, pk=tournament_id)

Loading…
Cancel
Save