CI: fix Decimal bug

This commit is contained in:
xtaodada 2023-07-01 20:17:39 +08:00
parent 95aa187f2b
commit 4aa94e7db1
Signed by: xtaodada
GPG Key ID: 4CBB3F4FA8C85659

View File

@ -30,7 +30,7 @@ for idx, plugins_ in enumerate([plugins, alpha_plugins]):
if plug_dict["name"] == plugin:
exist = True
old_version = decimal.Decimal(plug_dict["version"])
plug_dict["version"] = old_version + decimal.Decimal("0.01")
plug_dict["version"] = str(old_version + decimal.Decimal("0.01"))
plug_dict["size"] = f"{os.path.getsize(f'{list_json_start[idx]}{plugin}{os.sep}main.py') / 1000} kb"
if delete:
list_json["list"].remove(plug_dict)