File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
services/web/server/src/simcore_service_webserver/projects Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ async def open_project(request: web.Request) -> web.Response:
9999 project_uuid = path_params .project_id ,
100100 client_session_id = client_session_id ,
101101 app = request .app ,
102- max_number_of_studies_per_user = product .max_open_studies_per_user ,
102+ max_number_of_opened_projects_per_user = product .max_open_studies_per_user ,
103103 ):
104104 raise HTTPLockedError (text = "Project is locked, try later" )
105105
Original file line number Diff line number Diff line change @@ -1393,7 +1393,7 @@ async def try_open_project_for_user(
13931393 project_uuid : ProjectID ,
13941394 client_session_id : str ,
13951395 app : web .Application ,
1396- max_number_of_studies_per_user : int | None ,
1396+ max_number_of_opened_projects_per_user : int | None ,
13971397) -> bool :
13981398 """
13991399 Raises:
@@ -1418,7 +1418,7 @@ async def _open_project() -> bool:
14181418 with managed_resource (user_id , client_session_id , app ) as user_session :
14191419 # NOTE: if max_number_of_studies_per_user is set, the same
14201420 # project shall still be openable if the tab was closed
1421- if max_number_of_studies_per_user is not None and (
1421+ if max_number_of_opened_projects_per_user is not None and (
14221422 len (
14231423 {
14241424 uuid
@@ -1428,10 +1428,10 @@ async def _open_project() -> bool:
14281428 if uuid != f"{ project_uuid } "
14291429 }
14301430 )
1431- >= max_number_of_studies_per_user
1431+ >= max_number_of_opened_projects_per_user
14321432 ):
14331433 raise ProjectTooManyProjectOpenedError (
1434- max_num_projects = max_number_of_studies_per_user ,
1434+ max_num_projects = max_number_of_opened_projects_per_user ,
14351435 user_id = user_id ,
14361436 project_uuid = project_uuid ,
14371437 client_session_id = client_session_id ,
You can’t perform that action at this time.
0 commit comments