We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 829ce58 commit fc9b74cCopy full SHA for fc9b74c
1 file changed
phi-plugin/config.py
@@ -13,8 +13,8 @@
13
VERSION_PATTERN = re.compile(
14
r"https://img\.shields\.io/badge/(?P<type>插件版本|Phigros)-(?P<version>(.*))-9cf"
15
)
16
-currentVersion = "未知"
17
-phigros_ver = "未知"
+currentVersion = ""
+phigros_ver = ""
18
with contextlib.suppress(Exception):
19
if (PATH / "README.md").exists():
20
with open(PATH / "README.md", encoding="utf-8") as f:
@@ -24,9 +24,9 @@
24
version = match["version"]
25
26
if ver_type == "插件版本":
27
- currentVersion = f"v{version}"
+ currentVersion = f" v{version}"
28
elif ver_type == "Phigros":
29
- phigros_ver = version
+ phigros_ver = f" {version}"
30
31
Version: dict[Literal["ver", "phigros", "nonebot"], str] = {
32
"ver": currentVersion,
0 commit comments