Fixed mistake in docs build config function

This commit is contained in:
2025-05-29 18:14:07 +01:00
parent 3d75ec0d7e
commit efb13fc4a6

View File

@@ -10,7 +10,7 @@ def get_release() -> str:
pkgid = subprocess.run(["cargo", "pkgid"], capture_output=True).stdout.decode().strip()
release_start = pkgid.rfind("#") + 1
pkglabel = pkgid[release_start:]
verlabel = pkglabel[pkglabel.rfind("@") + 1] if "@" in pkglabel else pkglabel
verlabel = pkglabel[pkglabel.rfind("@") + 1:] if "@" in pkglabel else pkglabel
return verlabel