mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 09:02:11 +01:00 
			
		
		
		
	Display mention on tfjm.org page
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -40,7 +40,7 @@ class Command(BaseCommand):
 | 
			
		||||
        if tournament.final:
 | 
			
		||||
            self.w(f"<p>La finale a eu lieu le weekend du {date_start} au {date_end} et a été remporté par l'équipe "
 | 
			
		||||
                   f"<em>{notes[0][0].team.name}</em> suivie de l'équipe <em>{notes[1][0].team.name}</em>. "
 | 
			
		||||
                   f"Les deux premières équipes sont sélectionnées pour représenter la France lors de l'ITYM.</p>")
 | 
			
		||||
                   f"Les deux premières équipes sont sélectionnées pour représenter la France lors de l'ETEAM.</p>")
 | 
			
		||||
        else:
 | 
			
		||||
            self.w(f"<p>Le tournoi de {name} a eu lieu le weekend du {date_start} au {date_end} et a été remporté par "
 | 
			
		||||
                   f"l'équipe <em>{notes[0][0].team.name}</em>.</p>")
 | 
			
		||||
@@ -70,14 +70,10 @@ class Command(BaseCommand):
 | 
			
		||||
                pool_note = pool.average(participation)
 | 
			
		||||
                self.w(f"\t<td>{pool_note:.01f}</td>")
 | 
			
		||||
            self.w(f"\t<td>{note:.01f}</td>")
 | 
			
		||||
            if i == 0:
 | 
			
		||||
                self.w("\t<td class=\"has-text-align-center\">1<sup>er</sup> prix</td>")
 | 
			
		||||
            elif i < (5 if tournament.final else 3):
 | 
			
		||||
                self.w(f"\t<td class=\"has-text-align-center\">{i + 1}<sup>ème</sup> prix</td>")
 | 
			
		||||
            elif i < 2 * len(notes) / 3:
 | 
			
		||||
                self.w("\t<td class=\"has-text-align-center\">Mention très honorable</td>")
 | 
			
		||||
            if tournament.final:
 | 
			
		||||
                self.w(f"\t<td>{participation.mention_final}</td>")
 | 
			
		||||
            else:
 | 
			
		||||
                self.w("\t<td class=\"has-text-align-center\">Mention honorable</td>")
 | 
			
		||||
                self.w(f"\t<td>{participation.mention}</td>")
 | 
			
		||||
            self.w("</tr>")
 | 
			
		||||
        self.w("</tbody>")
 | 
			
		||||
        self.w("</table>")
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user