mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:52:17 +01:00 
			
		
		
		
	Allow to parse empty mentions
Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
		@@ -676,7 +676,7 @@ class Tournament(models.Model):
 | 
			
		||||
                notes[participation] = note
 | 
			
		||||
        sorted_notes = sorted(notes.items(), key=lambda x: x[1], reverse=True)
 | 
			
		||||
        for i, (participation, _note) in enumerate(sorted_notes):
 | 
			
		||||
            mention = mentions[i][3]
 | 
			
		||||
            mention = mentions[i][3] if len(mentions[i]) >= 4 else ""
 | 
			
		||||
            if not self.final:
 | 
			
		||||
                participation.mention = mention
 | 
			
		||||
            else:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user