mirror of
https://github.com/YunoHost/apps.git
synced 2024-09-03 20:06:07 +02:00
not .as_string()
This commit is contained in:
parent
0ac80311e9
commit
86736f9b3e
1 changed files with 1 additions and 1 deletions
|
@ -169,7 +169,7 @@ def bump_revision(request: Request, pr_infos: dict) -> HTTPResponse:
|
||||||
|
|
||||||
manifest_file = (folder / "manifest.toml")
|
manifest_file = (folder / "manifest.toml")
|
||||||
manifest = tomlkit.load(manifest_file.open("r", encoding="utf-8"))
|
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)
|
revision = str(int(revision) + 1)
|
||||||
manifest["version"] = "~ynh".join([version, revision])
|
manifest["version"] = "~ynh".join([version, revision])
|
||||||
tomlkit.dump(manifest, manifest_file.open("w", encoding="utf-8"))
|
tomlkit.dump(manifest, manifest_file.open("w", encoding="utf-8"))
|
||||||
|
|
Loading…
Add table
Reference in a new issue