mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:12:17 +01: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:
		@@ -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):
 | 
				
			||||||
        """
 | 
					        """
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user