mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 08:24:53 +01:00
Refactor version parts concatenation
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
This commit is contained in:
parent
f46f1d2e8d
commit
8f1eebfcbf
1 changed files with 9 additions and 1 deletions
|
|
@ -1391,7 +1391,15 @@ class ProjectPushItemProcess:
|
||||||
"""Creates description text about source version."""
|
"""Creates description text about source version."""
|
||||||
src_version_id = src_version_entity["id"]
|
src_version_id = src_version_entity["id"]
|
||||||
src_author = src_version_entity["author"]
|
src_author = src_version_entity["author"]
|
||||||
version_url = f"{ayon_api.get_base_url()}/projects/{src_project_name}/products?project={src_project_name}&type=version&id={src_version_id}" # noqa: E501
|
query = "&".join([
|
||||||
|
f"project={src_project_name}",
|
||||||
|
f"type=version",
|
||||||
|
f"id={src_version_id},
|
||||||
|
])
|
||||||
|
version_url = (
|
||||||
|
f"{ayon_api.get_base_url()}"
|
||||||
|
f"/projects/{src_project_name}/products?{query}"
|
||||||
|
)
|
||||||
description = (
|
description = (
|
||||||
f"\n\nVersion copied from from {version_url} "
|
f"\n\nVersion copied from from {version_url} "
|
||||||
f"created by '{src_author}', "
|
f"created by '{src_author}', "
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue