Skip to content

Commit b88b3ef

Browse files
committed
refactor:append speed
1 parent a123eb6 commit b88b3ef

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

utils/channel.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,7 @@ def get_channel_results_by_name(name, data):
170170
Get channel results from data by name
171171
"""
172172
format_name = format_channel_name(name)
173-
cc = OpenCC("s2t")
174-
name_s2t = cc.convert(format_name)
175-
result1 = data.get(format_name, [])
176-
result2 = data.get(name_s2t, [])
177-
results = list(dict.fromkeys(result1 + result2))
173+
results = data.get(format_name, [])
178174
return results
179175

180176

0 commit comments

Comments
 (0)