mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-24 11:47:04 -04:00
refactor: Organize code to remove flake8 issues
This commit is contained in:
parent
f4c0616332
commit
6006b4f93b
24 changed files with 43 additions and 39 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue