Skip to content

Commit 9a32cf0

Browse files
committed
ruff
1 parent 714e817 commit 9a32cf0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

services/web/server/src/simcore_service_webserver/projects/projects_api.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
PricingAndHardwareInfoTuple,
5454
PricingInfo,
5555
)
56-
from models_library.services import DynamicServiceKey, ServiceKey, ServiceVersion
56+
from models_library.services import ServiceKey, ServiceVersion
5757
from models_library.services_resources import (
5858
DEFAULT_SINGLE_SERVICE_NAME,
5959
ServiceResourcesDict,
@@ -89,7 +89,6 @@
8989
ProjectNodesNodeNotFoundError,
9090
)
9191
from simcore_postgres_database.webserver_models import ProjectType
92-
from simcore_service_webserver.projects._db_utils import PermissionStr
9392

9493
from ..application_settings import get_application_settings
9594
from ..catalog import client as catalog_client
@@ -127,6 +126,7 @@
127126
check_user_project_permission,
128127
has_user_project_access_rights,
129128
)
129+
from ._db_utils import PermissionStr
130130
from ._nodes_utils import set_reservation_same_as_limit, validate_new_service_resources
131131
from ._wallets_api import connect_wallet_to_project, get_project_wallet
132132
from .db import APP_PROJECT_DBAPI, ProjectDBAPI
@@ -556,7 +556,7 @@ def _check_required_input(required_input_key: KeyIDStr) -> None:
556556
)
557557

558558

559-
async def _start_dynamic_service(
559+
async def _start_dynamic_service( # noqa: C901
560560
request: web.Request,
561561
*,
562562
service_key: ServiceKey,
@@ -742,7 +742,7 @@ async def _() -> None:
742742
can_save=save_state,
743743
project_id=project_uuid,
744744
user_id=user_id,
745-
service_key=DynamicServiceKey(service_key),
745+
service_key=service_key,
746746
service_version=service_version,
747747
service_uuid=node_uuid,
748748
request_dns=extract_dns_without_default_port(request.url),

0 commit comments

Comments
 (0)