Verified Commit 94ae257a authored by Peter Stanko's avatar Peter Stanko
Browse files

Submission service cannot be imported to processor

parent 35765495
Pipeline #32278 passed with stage
in 7 minutes and 51 seconds
import json
import secrets
from pathlib import Path
from typing import Optional
from typing import Optional, TYPE_CHECKING
from portal import logger
from portal.database import Project, Submission, SubmissionState, Worker
from portal.database.enums import WorkerState
from portal.service import errors
from import UploadedEntity, entities
from portal.service.submissions import SubmissionsService
from portal.service.submissions import SubmissionsService
log = logger.get_logger(__name__)
......@@ -20,7 +22,7 @@ class SubmissionProcessor:
self._services = ServicesCollection()
def submission_service(self) -> SubmissionsService:
def submission_service(self) -> 'SubmissionsService':
return self._services.submissions(self.submission)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment