mirror of
https://github.com/ynput/ayon-core.git
synced 2025-12-24 12:54:40 +01:00
Refactor description concatenation
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
1be1a30b38
commit
f46f1d2e8d
1 changed files with 9 additions and 1 deletions
|
|
@ -1045,11 +1045,19 @@ class ProjectPushItemProcess:
|
|||
copied_tags = self._get_transferable_tags(src_version_entity)
|
||||
copied_status = self._get_transferable_status(src_version_entity)
|
||||
|
||||
description_parts = []
|
||||
dst_attr_description = dst_attrib.get("description")
|
||||
if dst_attr_description:
|
||||
description_parts.append(dst_attr_description)
|
||||
|
||||
description = self._create_src_version_description(
|
||||
self._item.src_project_name,
|
||||
src_version_entity
|
||||
)
|
||||
dst_attrib["description"] = dst_attrib.get("description", "") + description
|
||||
if description:
|
||||
description_parts.append(description)
|
||||
|
||||
dst_attrib["description"] = "\n\n".join(description_parts)
|
||||
|
||||
version_entity = new_version_entity(
|
||||
dst_version,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue