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

View file

@ -8,7 +8,6 @@ from django.utils.crypto import get_random_string
from ..config import (
OUTPUT_DIR,
SECRET_KEY,
DEBUG,
ALLOWED_HOSTS,
PYTHON_DIR,
ACTIVE_THEME,

View file

@ -1,3 +1,3 @@
from django.test import TestCase
#from django.test import TestCase
# Create your tests here.

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 = {

View file

@ -2,5 +2,4 @@ from archivebox.logging_util import log_shell_welcome_msg
if __name__ == '__main__':
from main import *
log_shell_welcome_msg()