Skip to content

Commit 2c062e3

Browse files
fix first elem get
1 parent 32043a4 commit 2c062e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1425,7 +1425,7 @@ async def _get_project_lock_state(
14251425
)
14261426
return ProjectLocked(
14271427
value=False,
1428-
owner=Owner(user_id=list(set_user_ids)[0], **usernames[0]), # type: ignore[arg-type]
1428+
owner=Owner(user_id=next(iter(set_user_ids)), **usernames[0]),
14291429
status=ProjectStatus.OPENED,
14301430
)
14311431
# the project is opened in another tab or browser, or by another user, both case resolves to the project being locked, and opened
@@ -1436,7 +1436,7 @@ async def _get_project_lock_state(
14361436
)
14371437
return ProjectLocked(
14381438
value=True,
1439-
owner=Owner(user_id=list(set_user_ids)[0], **usernames[0]), # type: ignore[arg-type]
1439+
owner=Owner(user_id=next(iter(set_user_ids)), **usernames[0]),
14401440
status=ProjectStatus.OPENED,
14411441
)
14421442

0 commit comments

Comments
 (0)