1
0
Fork 0

not .as_string()

This commit is contained in:
Félix Piédallu 2024-08-14 12:33:08 +02:00 committed by Salamandar
parent 921890c6e9
commit 4c04ef911c

View file

@ -169,7 +169,7 @@ def bump_revision(request: Request, pr_infos: dict) -> HTTPResponse:
manifest_file = (folder / "manifest.toml")
manifest = tomlkit.load(manifest_file.open("r", encoding="utf-8"))
version, revision = manifest["version"].as_string().split("~ynh")
version, revision = manifest["version"].split("~ynh")
revision = str(int(revision) + 1)
manifest["version"] = "~ynh".join([version, revision])
tomlkit.dump(manifest, manifest_file.open("w", encoding="utf-8"))