Add set_user_attr in rename_study api

This commit is contained in:
porink0424
2024-08-09 11:35:06 +09:00
parent 8b88194667
commit f8390ee2dd
+2
View File
@@ -159,6 +159,8 @@ def create_app(
storage=storage, study_name=dst_study_name, directions=src_study.directions
)
dst_study.add_trials(src_study.get_trials(deepcopy=False))
for key, value in src_study.user_attrs.items():
dst_study.set_user_attr(key, value)
note.copy_notes(storage, src_study, dst_study)
except DuplicatedStudyError:
response.status = 400 # Bad request