mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-12 12:57:41 +02:00
Merge pull request #665 from khiemdoan/redundancy
Remove assign operator redundancy
This commit is contained in:
@@ -145,7 +145,7 @@ def index(request):
|
||||
context['most_common_cwe'] = CweId.objects.annotate(nused=Count('cwe_ids')).order_by('-nused').values('name', 'nused')[:7]
|
||||
context['most_common_tags'] = VulnerabilityTags.objects.annotate(nused=Count('vuln_tags')).order_by('-nused').values('name', 'nused')[:7]
|
||||
|
||||
context['asset_countries'] = context['asset_countries'] = CountryISO.objects.annotate(count=Count('ipaddress')).order_by('-count')
|
||||
context['asset_countries'] = CountryISO.objects.annotate(count=Count('ipaddress')).order_by('-count')
|
||||
|
||||
return render(request, 'dashboard/index.html', context)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user