From 4c04ef911c2fe2c06f0adce1649b94b3d78980a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Pi=C3=A9dallu?= Date: Wed, 14 Aug 2024 12:33:08 +0200 Subject: [PATCH] not .as_string() --- webhooks/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webhooks/webhook.py b/webhooks/webhook.py index a5b81c8..239951f 100755 --- a/webhooks/webhook.py +++ b/webhooks/webhook.py @@ -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"))