mirror of
https://gitlab.com/animath/si/plateforme.git
synced 2024-12-25 16:22:22 +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:
parent
a62e906b0e
commit
bf5c673739
@ -5,6 +5,7 @@ from collections import OrderedDict
|
|||||||
import json
|
import json
|
||||||
from random import randint, shuffle
|
from random import randint, shuffle
|
||||||
|
|
||||||
|
from asgiref.sync import sync_to_async
|
||||||
from channels.generic.websocket import AsyncJsonWebsocketConsumer
|
from channels.generic.websocket import AsyncJsonWebsocketConsumer
|
||||||
from django.conf import settings
|
from django.conf import settings
|
||||||
from django.contrib.contenttypes.models import ContentType
|
from django.contrib.contenttypes.models import ContentType
|
||||||
@ -989,6 +990,8 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
|
|||||||
if await pool.is_exportable():
|
if await pool.is_exportable():
|
||||||
await pool.export()
|
await pool.export()
|
||||||
|
|
||||||
|
await sync_to_async(self.tournament.update_ranking_spreadsheet)()
|
||||||
|
|
||||||
@ensure_orga
|
@ensure_orga
|
||||||
async def continue_final(self, **kwargs):
|
async def continue_final(self, **kwargs):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user