Move stuff arround
This commit is contained in:
@@ -20,15 +20,15 @@ from u2flib_server import u2f
|
||||
|
||||
import config
|
||||
from activitypub import Box
|
||||
from app_utils import MY_PERSON
|
||||
from app_utils import _build_thread
|
||||
from app_utils import _Response
|
||||
from app_utils import csrf
|
||||
from app_utils import login_required
|
||||
from app_utils import noindex
|
||||
from app_utils import p
|
||||
from app_utils import paginated_query
|
||||
from app_utils import post_to_outbox
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _build_thread
|
||||
from core.shared import _Response
|
||||
from core.shared import csrf
|
||||
from core.shared import login_required
|
||||
from core.shared import noindex
|
||||
from core.shared import p
|
||||
from core.shared import paginated_query
|
||||
from core.shared import post_to_outbox
|
||||
from config import DB
|
||||
from config import ID
|
||||
from config import PASS
|
||||
|
@@ -26,11 +26,11 @@ from werkzeug.utils import secure_filename
|
||||
import activitypub
|
||||
import config
|
||||
from activitypub import Box
|
||||
from app_utils import MY_PERSON
|
||||
from app_utils import _Response
|
||||
from app_utils import back
|
||||
from app_utils import csrf
|
||||
from app_utils import post_to_outbox
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _Response
|
||||
from core.shared import back
|
||||
from core.shared import csrf
|
||||
from core.shared import post_to_outbox
|
||||
from config import BASE_URL
|
||||
from config import DB
|
||||
from config import DEBUG_MODE
|
||||
|
@@ -16,8 +16,8 @@ from flask import session
|
||||
from flask import url_for
|
||||
from itsdangerous import BadSignature
|
||||
|
||||
from app_utils import _get_ip
|
||||
from app_utils import login_required
|
||||
from core.shared import _get_ip
|
||||
from core.shared import login_required
|
||||
from config import DB
|
||||
from config import JWT
|
||||
|
||||
|
@@ -13,15 +13,15 @@ from little_boxes.errors import NotAnActivityError
|
||||
from little_boxes.httpsig import HTTPSigAuth
|
||||
from requests.exceptions import HTTPError
|
||||
|
||||
import activity_gc
|
||||
from core import gc
|
||||
import activitypub
|
||||
import config
|
||||
from activitypub import Box
|
||||
from app_utils import MY_PERSON
|
||||
from app_utils import _add_answers_to_question
|
||||
from app_utils import back
|
||||
from app_utils import p
|
||||
from app_utils import post_to_outbox
|
||||
from core.shared import MY_PERSON
|
||||
from core.shared import _add_answers_to_question
|
||||
from core.shared import back
|
||||
from core.shared import p
|
||||
from core.shared import post_to_outbox
|
||||
from config import DB
|
||||
from core.notifications import set_inbox_flags
|
||||
from tasks import Tasks
|
||||
@@ -457,7 +457,7 @@ def task_fetch_remote_question():
|
||||
def task_cleanup():
|
||||
task = p.parse(flask.request)
|
||||
app.logger.info(f"task={task!r}")
|
||||
activity_gc.perform()
|
||||
gc.perform()
|
||||
return ""
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user