File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -104,6 +104,10 @@ Telegram:[@lgc2333](https://t.me/lgc2333)
104
104
105
105
## 📝 更新日志
106
106
107
+ ### 0.1.6
108
+
109
+ - 修复由于下划线横线不统一导致的显示错误
110
+
107
111
### 0.1.5
108
112
109
113
- 更新项目的总结会显示包更新前的版本号
Original file line number Diff line number Diff line change 1
- __version__ = "0.1.5.post1 "
1
+ __version__ = "0.1.6 "
Original file line number Diff line number Diff line change @@ -66,12 +66,16 @@ async def summary_infos(
66
66
success_infos = [x for x in infos if isinstance (x , SuccessInstallInfo )]
67
67
unchanged_infos = [x for x in success_infos if x .name not in changed_pkgs ]
68
68
fail_infos = [x for x in infos if isinstance (x , FailInstallInfo )]
69
- changed_plugins = {
69
+ changed_targets = {
70
70
k : v
71
71
for k , v in changed_pkgs .items ()
72
72
if any (True for x in success_infos if x .name == k )
73
73
}
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
+ }
75
79
76
80
info_li : List [str ] = []
77
81
if unchanged_infos :
@@ -92,13 +96,13 @@ async def summary_infos(
92
96
other_pkgs = style_change_dict (changed_others )
93
97
info_li .append (f"{ other_title } \n { other_pkgs } " )
94
98
95
- if changed_plugins :
99
+ if changed_targets :
96
100
updated_title = click .style (
97
- f"已更新({ len (changed_plugins )} 个):" ,
101
+ f"已更新({ len (changed_targets )} 个):" ,
98
102
fg = "green" ,
99
103
bold = True ,
100
104
)
101
- updated_plugins = style_change_dict (changed_plugins )
105
+ updated_plugins = style_change_dict (changed_targets )
102
106
info_li .append (f"{ updated_title } \n { updated_plugins } " )
103
107
104
108
if fail_infos :
You can’t perform that action at this time.
0 commit comments