mirror of
https://github.com/ynput/ayon-core.git
synced 2026-01-01 16:34:53 +01:00
Improve documentation for validate version.
This commit is contained in:
parent
db3f708b19
commit
23f70bac3c
1 changed files with 5 additions and 5 deletions
|
|
@ -17,9 +17,9 @@ class ValidateVersion(pyblish.api.InstancePlugin):
|
||||||
latest_version = instance.data.get("latestVersion")
|
latest_version = instance.data.get("latestVersion")
|
||||||
|
|
||||||
if latest_version is not None:
|
if latest_version is not None:
|
||||||
msg = ("Version `{0}` that you are"
|
msg = (
|
||||||
" trying to publish, already"
|
"Version `{0}` that you are trying to publish, already exists"
|
||||||
" exists in the"
|
" in the database. Version in databse: `{1}`. Please version "
|
||||||
" database.").format(
|
"up your workfile to a higher version number than: `{1}`."
|
||||||
version, latest_version)
|
).format(version, latest_version)
|
||||||
assert (int(version) > int(latest_version)), msg
|
assert (int(version) > int(latest_version)), msg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue