mirror of
https://github.com/yogeshojha/rengine.git
synced 2026-09-20 16:57:43 +02:00
Fixed last scan for subdomains and endpoints
This commit is contained in:
@@ -164,9 +164,9 @@ All Subdomains
|
||||
<div class="widget widget-activity-four">
|
||||
<div class="widget-heading">
|
||||
<h6 class="">Subdomain Changes</h6>
|
||||
<p>
|
||||
<p class='text-muted small'>
|
||||
Comparing against the last scan performed on
|
||||
<a href="{{last_scan.id}}" class="badge badge-pills badge-info bs-tooltip" title="{{last_scan.get_subdomain_count}} subdomains were discovered during the last scan.">{{last_scan.last_scan_date}}</a>
|
||||
<a href="{{last_scan_subdomain.id}}" class="badge badge-pills badge-info bs-tooltip" title="{{last_scan_subdomain.get_subdomain_count}} subdomains were discovered during the last scan."><small>{{last_scan_subdomain.last_scan_date}}</small></a>
|
||||
</p>
|
||||
<p>
|
||||
{% if new_subdomains.count or removed_subdomains.count %}
|
||||
@@ -216,9 +216,9 @@ All Subdomains
|
||||
<div class="widget widget-activity-four">
|
||||
<div class="widget-heading">
|
||||
<h6 class="">Endpoint Changes</h6>
|
||||
<p>
|
||||
<p class='text-muted small'>
|
||||
Comparing against the last scan performed on
|
||||
<a href="{{last_scan.id}}" class="badge badge-pills badge-info bs-tooltip" title="{{last_scan.get_endpoint_count}} endpoints were discovered during the last scan.">{{last_scan.last_scan_date}}</a>
|
||||
<a href="{{last_scan_endpoint.id}}" class="badge badge-pills badge-info bs-tooltip" title="{{last_scan_endpoint.get_endpoint_count}} endpoints were discovered during the last scan."><small>{{last_scan_endpoint.last_scan_date}}</small></a>
|
||||
</p>
|
||||
<p>
|
||||
{% if new_urls.count or removed_urls.count %}
|
||||
|
||||
+2
-1
@@ -80,7 +80,7 @@ def detail_scan(request, id=None):
|
||||
|
||||
context['new_subdomains'] = scanned_host_q1.difference(scanned_host_q2)
|
||||
context['removed_subdomains'] = scanned_host_q2.difference(scanned_host_q1)
|
||||
context['last_scan'] = last_scan
|
||||
context['last_scan_subdomain'] = last_scan
|
||||
|
||||
if ScanHistory.objects.filter(
|
||||
domain_name=domain_id).filter(
|
||||
@@ -93,6 +93,7 @@ def detail_scan(request, id=None):
|
||||
|
||||
context['new_urls'] = endpoint_q1.difference(endpoint_q2)
|
||||
context['removed_urls'] = endpoint_q2.difference(endpoint_q1)
|
||||
context['last_scan_endpoint'] = last_scan
|
||||
|
||||
return render(request, 'startScan/detail_scan.html', context)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user