Skip to content

Commit

Permalink
Remove bad tuple var and set create flag to true
Browse files Browse the repository at this point in the history
  • Loading branch information
psyray committed Nov 23, 2023
1 parent e91ca6b commit d12d69b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/reNgine/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -4509,12 +4509,13 @@ def save_endpoint(
created = False
else:
# No existing record, create a new one
endpoint, created = EndPoint.objects.create(
endpoint = EndPoint.objects.create(
scan_history=scan,
target_domain=domain,
http_url=http_url,
**endpoint_data
)
created = True

if created:
endpoint.is_default = is_default
Expand Down

0 comments on commit d12d69b

Please sign in to comment.