fix the add links form

This commit is contained in:
Nick Sweeting 2020-07-13 12:21:37 -04:00
parent 215d5eae32
commit ae208435c9
6 changed files with 10 additions and 8 deletions

View file

@ -66,9 +66,9 @@ class AddLinks(View):
if form.is_valid():
url = form.cleaned_data["url"]
print(f'[+] Adding URL: {url}')
depth = 0 if form.cleaned_data["source"] == "url" else 1
depth = 0 if form.cleaned_data["depth"] == "0" else 0
input_kwargs = {
"url": url,
"urls": url,
"depth": depth,
"update_all": False,
"out_dir": OUTPUT_DIR,