Skip to content

Commit

Permalink
Add missing domain id value
Browse files Browse the repository at this point in the history
  • Loading branch information
psyray committed Nov 22, 2023
1 parent fafbf7a commit e170872
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,9 +220,10 @@ def initiate_subscan(
url_filter (str): URL path. Default: ''
"""

# Get Subdomain and ScanHistory
# Get Subdomain, Domain and ScanHistory
subdomain = Subdomain.objects.get(pk=subdomain_id)
scan = ScanHistory.objects.get(pk=subdomain.scan_history.id)
domain = Domain.objects.get(pk=subdomain.target_domain.id)

# Get EngineType
engine_id = engine_id or scan.scan_type.id
Expand Down Expand Up @@ -270,6 +271,7 @@ def initiate_subscan(
'scan_history_id': scan.id,
'subscan_id': subscan.id,
'engine_id': engine_id,
'domain_id': domain.id,
'subdomain_id': subdomain.id,
'yaml_configuration': config,
'results_dir': results_dir,
Expand Down

0 comments on commit e170872

Please sign in to comment.