mirror of
https://github.com/bellingcat/auto-archiver-api.git
synced 2026-06-11 13:08:34 +03:00
refactoring worker file location
This commit is contained in:
@@ -6,7 +6,7 @@ import sqlalchemy
|
||||
|
||||
from web.security import token_api_key_auth
|
||||
from db import models, schemas
|
||||
from worker import insert_result_into_db
|
||||
from worker.main import insert_result_into_db
|
||||
from core.logging import log_error
|
||||
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ from loguru import logger
|
||||
from core.config import ALLOW_ANY_EMAIL
|
||||
from web.security import get_token_or_user_auth
|
||||
from db import schemas
|
||||
from worker import create_sheet_task
|
||||
from worker.main import create_sheet_task
|
||||
|
||||
sheet_router = APIRouter(prefix="/sheet", tags=["Google Spreadsheet operations"])
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ from web.security import get_token_or_user_auth
|
||||
|
||||
from db import schemas
|
||||
from core.logging import log_error
|
||||
from worker import celery
|
||||
from worker.main import celery
|
||||
|
||||
|
||||
task_router = APIRouter(prefix="/task", tags=["Async task operations"])
|
||||
|
||||
@@ -10,7 +10,7 @@ from sqlalchemy.orm import Session
|
||||
from db import crud, schemas
|
||||
from db.database import get_db_dependency
|
||||
|
||||
from worker import create_archive_task
|
||||
from worker.main import create_archive_task
|
||||
|
||||
url_router = APIRouter(prefix="/url", tags=["Single URL operations"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user