File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
src/simcore_service_webserver/projects Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,7 @@ def _reraise_if_not_unique_uuid_error(err: UniqueViolation):
160160 raise err
161161
162162 selected_values : ProjectDict = {}
163+ workbench = insert_values .pop ("workbench" , {})
163164 async with self .engine .acquire () as conn :
164165 async for attempt in AsyncRetrying (retry = retry_if_exception_type (TryAgain )):
165166 with attempt :
@@ -183,6 +184,8 @@ def _reraise_if_not_unique_uuid_error(err: UniqueViolation):
183184 assert row # nosec
184185
185186 selected_values = ProjectDict (row .items ())
187+ if workbench :
188+ selected_values ["workbench" ] = workbench
186189 project_index = selected_values .pop ("id" )
187190
188191 except UniqueViolation as err :
Original file line number Diff line number Diff line change @@ -161,7 +161,6 @@ def _assert_project_db_row(
161161 "description" : project ["description" ],
162162 "thumbnail" : project ["thumbnail" ],
163163 "prj_owner" : None ,
164- "workbench" : project ["workbench" ],
165164 "published" : False ,
166165 "dev" : project ["dev" ],
167166 "classifiers" : project ["classifiers" ],
You can’t perform that action at this time.
0 commit comments