Update list_merge.py

This commit is contained in:
Mirei 2022-10-07 12:30:07 +03:30 committed by GitHub
parent 61e162c4c4
commit 5fdccac938
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -239,6 +239,10 @@ class sub_merge():
content_list = list(
filter(lambda x: x != '', ''.join(content_list).split("\n")))
# dup remove by string content
print("it was " + str(content_list.__len__()))
content_list = list(set(content_list))
print("now is " + str(content_list.__len__()))
content_raw = "\n".join(content_list)
# content_yaml = sub_convert.main(content_raw, 'content', 'content', {