mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 13:12:17 +01:00 
			
		
		
		
	Display notes for authenticated users
This commit is contained in:
		@@ -540,7 +540,8 @@ class TournamentDetailView(DetailView):
 | 
			
		||||
        for participation in self.object.participations.all():
 | 
			
		||||
            note = sum(pool.average(participation)
 | 
			
		||||
                       for pool in self.object.pools.filter(participations=participation).all()
 | 
			
		||||
                       if pool.results_available or self.request.user.registration.is_volunteer)
 | 
			
		||||
                       if pool.results_available
 | 
			
		||||
                       or (self.request.user.is_authenticated and self.request.user.registration.is_volunteer))
 | 
			
		||||
            if note:
 | 
			
		||||
                notes[participation] = note
 | 
			
		||||
        context["notes"] = sorted(notes.items(), key=lambda x: x[1], reverse=True)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user