Combine emoji sets one by one

merge-requests/30/head
Bob Mottram 2022-01-30 18:08:37 +00:00
parent f896bef6c6
commit d179b1749a
1 changed files with 3 additions and 4 deletions

View File

@ -946,10 +946,9 @@ def add_html_tags(base_dir: str, http_prefix: str,
emojis_combined = False emojis_combined = False
if not emojis_combined: if not emojis_combined:
# combine emoji dicts one by one # combine emoji dicts one by one
for emoji_name, emoji_item in \ for ename, eitem in custom_emoji_dict.items():
custom_emoji_dict.items(): if not emoji_dict.get(ename):
if not emoji_dict.get(emoji_name): emoji_dict[ename] = eitem
emoji_dict[emoji_name] = emoji_item
# print('TAG: looking up emoji for :' + word_str2 + ':') # print('TAG: looking up emoji for :' + word_str2 + ':')
_add_emoji(base_dir, ':' + word_str2 + ':', http_prefix, _add_emoji(base_dir, ':' + word_str2 + ':', http_prefix,