mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2026-03-28 02:42:23 +10:00
refactor: Organize code to remove flake8 issues
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
from django.test import TestCase
|
||||
#from django.test import TestCase
|
||||
|
||||
# Create your tests here.
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -2,5 +2,4 @@ from archivebox.logging_util import log_shell_welcome_msg
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from main import *
|
||||
log_shell_welcome_msg()
|
||||
|
||||
Reference in New Issue
Block a user