Skip to content

Commit ceaf92f

Browse files
committed
up
1 parent 2d463b5 commit ceaf92f

File tree

3 files changed

+14
-6
lines changed

3 files changed

+14
-6
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)
104104

105105
## 📝 更新日志
106106

107+
### 0.1.6
108+
109+
- 修复由于下划线横线不统一导致的显示错误
110+
107111
### 0.1.5
108112

109113
- 更新项目的总结会显示包更新前的版本号

nb_cli_plugin_bootstrap/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "0.1.5.post1"
1+
__version__ = "0.1.6"

nb_cli_plugin_bootstrap/handlers/update_project.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,16 @@ async def summary_infos(
6666
success_infos = [x for x in infos if isinstance(x, SuccessInstallInfo)]
6767
unchanged_infos = [x for x in success_infos if x.name not in changed_pkgs]
6868
fail_infos = [x for x in infos if isinstance(x, FailInstallInfo)]
69-
changed_plugins = {
69+
changed_targets = {
7070
k: v
7171
for k, v in changed_pkgs.items()
7272
if any(True for x in success_infos if x.name == k)
7373
}
74-
changed_others = {k: v for k, v in changed_pkgs.items() if k not in changed_plugins}
74+
changed_others = {
75+
k: v
76+
for k, v in changed_pkgs.items()
77+
if k.replace("_", "-") not in changed_targets
78+
}
7579

7680
info_li: List[str] = []
7781
if unchanged_infos:
@@ -92,13 +96,13 @@ async def summary_infos(
9296
other_pkgs = style_change_dict(changed_others)
9397
info_li.append(f"{other_title}\n{other_pkgs}")
9498

95-
if changed_plugins:
99+
if changed_targets:
96100
updated_title = click.style(
97-
f"已更新({len(changed_plugins)} 个):",
101+
f"已更新({len(changed_targets)} 个):",
98102
fg="green",
99103
bold=True,
100104
)
101-
updated_plugins = style_change_dict(changed_plugins)
105+
updated_plugins = style_change_dict(changed_targets)
102106
info_li.append(f"{updated_title}\n{updated_plugins}")
103107

104108
if fail_infos:

0 commit comments

Comments
 (0)