def show_checks(request):
 ignore = ('ignored' in request.GET)
 url_params = {}
 if ignore:
  url_params['ignored'] = 'true'
 allchecks = acl_checks(request.user).filter(ignore=ignore)
 if ('project' in request.GET):
  allchecks = allchecks.filter(project__slug=request.GET['project'])
  url_params['project'] = request.GET['project']
 if ('language' in request.GET):
  allchecks = allchecks.filter(language__code=request.GET['language'])
  url_params['language'] = request.GET['language']
 allchecks = allchecks.values('check').annotate(count=Count('id'))
 return render(request, 'checks.html', {'checks': allchecks, 'title': _('Failing checks'), 'url_params': encode_optional(url_params)})

def show_checks ( request ) : ignore = ( 'ignored' in request . GET ) url_params = { } if ignore : url_params [ 'ignored' ] = 'true' allchecks = acl_checks ( request . user ) . filter ( ignore = ignore ) if ( 'project' in request . GET ) : allchecks = allchecks . filter ( project__slug = request . GET [ 'project' ] ) url_params [ 'project' ] = request . GET [ 'project' ] if ( 'language' in request . GET ) : allchecks = allchecks . filter ( language__code = request . GET [ 'language' ] ) url_params [ 'language' ] = request . GET [ 'language' ] allchecks = allchecks . values ( 'check' ) . annotate ( count = Count ( 'id' ) ) return render ( request , 'checks.html' , { 'checks' : allchecks , 'title' : _ ( 'Failing checks' ) , 'url_params' : encode_optional ( url_params ) } )
list of failing checks .