Skip to content

Commit 86c5a75

Browse files
typecheck
1 parent f41304c commit 86c5a75

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,8 +191,8 @@ async def _upsert_tags_in_project(
191191
.on_conflict_do_nothing()
192192
)
193193

194+
@staticmethod
194195
async def _get_workbench(
195-
self,
196196
connection: SAConnection,
197197
project_uuid: str,
198198
) -> NodesDict:

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

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,12 @@
161161
ProjectTooManyUserSessionsError,
162162
ProjectTypeAndTemplateIncompatibilityError,
163163
)
164-
from .models import ProjectDBGet, ProjectDict, ProjectPatchInternalExtended
164+
from .models import (
165+
ProjectDBGet,
166+
ProjectDict,
167+
ProjectPatchInternalExtended,
168+
ProjectWithWorkbenchDBGet,
169+
)
165170
from .settings import ProjectsSettings, get_plugin_settings
166171
from .utils import extract_dns_without_default_port
167172

@@ -1278,8 +1283,10 @@ async def patch_project_node(
12781283
app, project_id=project_id
12791284
)
12801285

1281-
updated_project = await _projects_repository.get_project_with_workbench(
1282-
app, project_uuid=project_id
1286+
updated_project: ProjectWithWorkbenchDBGet = (
1287+
await _projects_repository.get_project_with_workbench(
1288+
app, project_uuid=project_id
1289+
)
12831290
)
12841291

12851292
# 5. Updates project states for user, if inputs/outputs have been changed

0 commit comments

Comments
 (0)