1
0
Fork 0
mirror of synced 2024-06-28 11:00:35 +12:00

fix add page redirect

This commit is contained in:
Nick Sweeting 2020-06-29 21:26:59 -04:00
parent b9e17fa0d1
commit 094beac1d9

View file

@ -53,14 +53,14 @@ class AddLinks(View):
return render(template_name=self.template, request=request, context=context)
def post(self, request):
print(f'[+] Adding URL: {import_path}')
url = request.POST['url']
print(f'[+] Adding URL: {url}')
add(
import_str=request.POST['url'],
import_str=url,
update_all=False,
out_dir=OUTPUT_DIR,
)
return render(template_name=self.template, request=request, context={})
return redirect('/')
class LinkDetails(View):