Update the final ranking page after the draw export

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello 2024-03-31 13:48:01 +02:00
parent a62e906b0e
commit bf5c673739
Signed by: ynerant
GPG Key ID: 3A75C55819C8CF85
1 changed files with 3 additions and 0 deletions

View File

@ -5,6 +5,7 @@ from collections import OrderedDict
import json
from random import randint, shuffle
from asgiref.sync import sync_to_async
from channels.generic.websocket import AsyncJsonWebsocketConsumer
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
@ -989,6 +990,8 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
if await pool.is_exportable():
await pool.export()
await sync_to_async(self.tournament.update_ranking_spreadsheet)()
@ensure_orga
async def continue_final(self, **kwargs):
"""