From 35809eab1c09f327c7aee9c66194f4825b795181 Mon Sep 17 00:00:00 2001 From: BlipRanger Date: Thu, 10 Dec 2020 12:45:30 -0500 Subject: [PATCH] Update archivebox/core/views.py Cleaner handling of the archive methods input Co-authored-by: Nick Sweeting --- archivebox/core/views.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/archivebox/core/views.py b/archivebox/core/views.py index a195ea24..a9578869 100644 --- a/archivebox/core/views.py +++ b/archivebox/core/views.py @@ -138,9 +138,7 @@ class AddView(UserPassesTestMixin, FormView): url = form.cleaned_data["url"] print(f'[+] Adding URL: {url}') depth = 0 if form.cleaned_data["depth"] == "0" else 1 - extractors = "" - for extractor in form.cleaned_data["archiveMethods"]: - extractors = extractors + extractor + ',' + extractors = ','.join(form.cleaned_data["archive_methods"]) input_kwargs = { "urls": url, "depth": depth,