mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 03:42:11 +01:00 
			
		
		
		
	Update repartition for 5-teams pools
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -376,11 +376,11 @@ class Pool(models.Model):
 | 
				
			|||||||
            ]
 | 
					            ]
 | 
				
			||||||
        elif self.size == 5:
 | 
					        elif self.size == 5:
 | 
				
			||||||
            table = [
 | 
					            table = [
 | 
				
			||||||
                [0, 2, 3],
 | 
					                [0, 3, 2],
 | 
				
			||||||
                [1, 3, 4],
 | 
					                [1, 4, 3],
 | 
				
			||||||
                [2, 0, 1],
 | 
					                [2, 0, 4],
 | 
				
			||||||
                [3, 4, 0],
 | 
					                [3, 1, 0],
 | 
				
			||||||
                [4, 1, 2],
 | 
					                [4, 2, 1],
 | 
				
			||||||
            ]
 | 
					            ]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        for i, line in enumerate(table):
 | 
					        for i, line in enumerate(table):
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -284,14 +284,14 @@
 | 
				
			|||||||
                                                            {% if forloop.counter == 1 %}
 | 
					                                                            {% if forloop.counter == 1 %}
 | 
				
			||||||
                                                                <td class="text-center">Déf</td>
 | 
					                                                                <td class="text-center">Déf</td>
 | 
				
			||||||
                                                                <td></td>
 | 
					                                                                <td></td>
 | 
				
			||||||
                                                                <td class="text-center">Opp</td>
 | 
					 | 
				
			||||||
                                                                <td class="text-center">Rap</td>
 | 
					                                                                <td class="text-center">Rap</td>
 | 
				
			||||||
 | 
					                                                                <td class="text-center">Opp</td>
 | 
				
			||||||
                                                                <td></td>
 | 
					                                                                <td></td>
 | 
				
			||||||
                                                            {% elif forloop.counter == 2 %}
 | 
					                                                            {% elif forloop.counter == 2 %}
 | 
				
			||||||
                                                                <td></td>
 | 
					                                                                <td></td>
 | 
				
			||||||
                                                                <td class="text-center">Déf</td>
 | 
					                                                                <td class="text-center">Déf</td>
 | 
				
			||||||
                                                                <td class="text-center">Rap</td>
 | 
					 | 
				
			||||||
                                                                <td></td>
 | 
					                                                                <td></td>
 | 
				
			||||||
 | 
					                                                                <td class="text-center">Rap</td>
 | 
				
			||||||
                                                                <td class="text-center">Opp</td>
 | 
					                                                                <td class="text-center">Opp</td>
 | 
				
			||||||
                                                            {% elif forloop.counter == 3 %}
 | 
					                                                            {% elif forloop.counter == 3 %}
 | 
				
			||||||
                                                                <td class="text-center">Opp</td>
 | 
					                                                                <td class="text-center">Opp</td>
 | 
				
			||||||
@@ -308,8 +308,8 @@
 | 
				
			|||||||
                                                            {% elif forloop.counter == 5 %}
 | 
					                                                            {% elif forloop.counter == 5 %}
 | 
				
			||||||
                                                                <td></td>
 | 
					                                                                <td></td>
 | 
				
			||||||
                                                                <td class="text-center">Rap</td>
 | 
					                                                                <td class="text-center">Rap</td>
 | 
				
			||||||
                                                                <td></td>
 | 
					                                                                <td>Opp</td>
 | 
				
			||||||
                                                                <td class="text-center">Opp</td>
 | 
					                                                                <td class="text-center"></td>
 | 
				
			||||||
                                                                <td class="text-center">Déf</td>
 | 
					                                                                <td class="text-center">Déf</td>
 | 
				
			||||||
                                                                <td></td>
 | 
					                                                                <td></td>
 | 
				
			||||||
                                                            {% endif %}
 | 
					                                                            {% endif %}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user