|  | @ -106,15 +106,13 @@ def paginacao_limite_superior(pagina): | 
			
		
	
		
		
			
				
					|  |  | 
 |  |  | 
 | 
			
		
	
		
		
			
				
					|  |  | @register.filter |  |  | @register.filter | 
			
		
	
		
		
			
				
					|  |  | def resultado_votacao(materia): |  |  | def resultado_votacao(materia): | 
			
		
	
		
		
			
				
					|  |  |     #from sapl.materia.models import MateriaLegislativa |  |  |  | 
			
		
	
		
		
			
				
					|  |  |     ra = materia.registrovotacao_set.first() |  |  |     ra = materia.registrovotacao_set.first() | 
			
		
	
		
		
			
				
					|  |  |     rb = materia.retiradapauta_set.first() |  |  |     rb = materia.retiradapauta_set.first() | 
			
		
	
		
		
			
				
					|  |  |     if ra: |  |  |     if ra: | 
			
		
	
		
		
			
				
					|  |  |         resultado = ra.tipo_resultado_votacao.nome |  |  |         resultado = ra.tipo_resultado_votacao.nome | 
			
		
	
		
		
			
				
					|  |  |     elif rb: |  |  |     elif rb: | 
			
		
	
		
		
			
				
					|  |  |         resultado = rb.tipo_de_retirada.descricao |  |  |         resultado = rb.tipo_de_retirada.descricao | 
			
		
	
		
		
			
				
					
					|  |  |     else: |  |  |     elif materia.expedientemateria_set.filter(tipo_votacao=4).exists() or \ | 
			
				
				
			
		
	
		
		
			
				
					|  |  |         if materia.expedientemateria_set.filter(tipo_votacao=4).exists() or \ |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					|  |  |             materia.ordemdia_set.filter(tipo_votacao=4).exists(): |  |  |             materia.ordemdia_set.filter(tipo_votacao=4).exists(): | 
			
		
	
		
		
			
				
					|  |  |         resultado = "Matéria lida" |  |  |         resultado = "Matéria lida" | 
			
		
	
		
		
			
				
					|  |  |     else: |  |  |     else: | 
			
		
	
	
		
		
			
				
					|  | 
 |