mirror of https://gitlab.com/bashrc2/epicyon
Check that dictionary was loaded
parent
424ba85942
commit
7a88dea618
|
@ -71,17 +71,17 @@ def htmlSearchEmoji(cssCache: {}, translate: {},
|
||||||
|
|
||||||
# does the lookup file exist?
|
# does the lookup file exist?
|
||||||
if not os.path.isfile(emojiLookupFilename):
|
if not os.path.isfile(emojiLookupFilename):
|
||||||
if not os.path.isfile(customEmojiLookupFilename):
|
emojiForm += '<center><h5>' + \
|
||||||
emojiForm += '<center><h5>' + \
|
translate['No results'] + '</h5></center>'
|
||||||
translate['No results'] + '</h5></center>'
|
emojiForm += htmlFooter()
|
||||||
emojiForm += htmlFooter()
|
return emojiForm
|
||||||
return emojiForm
|
|
||||||
|
|
||||||
emojiJson = loadJson(emojiLookupFilename)
|
emojiJson = loadJson(emojiLookupFilename)
|
||||||
if emojiJson:
|
if emojiJson:
|
||||||
if os.path.isfile(customEmojiLookupFilename):
|
if os.path.isfile(customEmojiLookupFilename):
|
||||||
customEmojiJson = loadJson(customEmojiLookupFilename)
|
customEmojiJson = loadJson(customEmojiLookupFilename)
|
||||||
emojiJson = dict(emojiJson, **customEmojiJson)
|
if customEmojiJson:
|
||||||
|
emojiJson = dict(emojiJson, **customEmojiJson)
|
||||||
results = {}
|
results = {}
|
||||||
for emojiName, filename in emojiJson.items():
|
for emojiName, filename in emojiJson.items():
|
||||||
if searchStr in emojiName:
|
if searchStr in emojiName:
|
||||||
|
|
Loading…
Reference in New Issue