mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 04:22:14 +01:00 
			
		
		
		
	@@ -531,8 +531,8 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
 | 
			
		||||
                                            {'tid': self.tournament_id, 'type': 'draw.dice_visibility',
 | 
			
		||||
                                             'visible': True})
 | 
			
		||||
 | 
			
		||||
        # First send the second pool to have the good team order
 | 
			
		||||
        async for r in self.tournament.draw.round_set.filter(number__gte=2).all():
 | 
			
		||||
        # First send the pools of next rounds to have the good team order
 | 
			
		||||
        async for next_round in self.tournament.draw.round_set.filter(number__gte=2).all():
 | 
			
		||||
            await self.channel_layer.group_send(f"tournament-{self.tournament.id}",
 | 
			
		||||
                                                {'tid': self.tournament_id, 'type': 'draw.send_poules',
 | 
			
		||||
                                                 'round': r.number,
 | 
			
		||||
@@ -541,7 +541,7 @@ class DrawConsumer(AsyncJsonWebsocketConsumer):
 | 
			
		||||
                                                         'letter': pool.get_letter_display(),
 | 
			
		||||
                                                         'teams': await pool.atrigrams(),
 | 
			
		||||
                                                     }
 | 
			
		||||
                                                     async for pool in r.pool_set.order_by('letter').all()
 | 
			
		||||
                                                     async for pool in next_round.pool_set.order_by('letter').all()
 | 
			
		||||
                                                 ]})
 | 
			
		||||
        await self.channel_layer.group_send(f"tournament-{self.tournament.id}",
 | 
			
		||||
                                            {'tid': self.tournament_id, 'type': 'draw.send_poules',
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user