refactor: Organize code to remove flake8 issues

This commit is contained in:
Cristian 2020-07-24 12:25:25 -05:00
parent f4c0616332
commit 6006b4f93b
24 changed files with 43 additions and 39 deletions
archivebox/core

View file

@ -4,7 +4,6 @@ from django.shortcuts import render, redirect
from django.http import HttpResponse
from django.views import View, static
from django.conf import settings
from core.models import Snapshot
@ -75,7 +74,7 @@ class AddLinks(View):
}
add_stdout = StringIO()
with redirect_stdout(add_stdout):
extracted_links = add(**input_kwargs)
add(**input_kwargs)
print(add_stdout.getvalue())
context = {