1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2024-12-25 05:02:23 +00:00

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

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):
"""