mirror of https://gitlab.com/bashrc2/epicyon
Only call function if needed
parent
3ed5e83a90
commit
2918582753
|
@ -253,10 +253,10 @@ def addHtmlTags(baseDir: str,httpPrefix: str, \
|
||||||
continue
|
continue
|
||||||
if addHashTags(wordStr,httpPrefix,originalDomain,replaceHashTags,hashtags):
|
if addHashTags(wordStr,httpPrefix,originalDomain,replaceHashTags,hashtags):
|
||||||
continue
|
continue
|
||||||
if not emojiDict:
|
|
||||||
if len(wordStr)>2:
|
if len(wordStr)>2:
|
||||||
if wordStr.startswith(':'):
|
if wordStr.startswith(':'):
|
||||||
if wordStr.endswith(':'):
|
if wordStr.endswith(':'):
|
||||||
|
if not emojiDict:
|
||||||
print('Loading emoji lookup')
|
print('Loading emoji lookup')
|
||||||
if not os.path.isfile(baseDir+'/emoji/emoji.json'):
|
if not os.path.isfile(baseDir+'/emoji/emoji.json'):
|
||||||
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')
|
copyfile(baseDir+'/emoji/default_emoji.json',baseDir+'/emoji/emoji.json')
|
||||||
|
|
Loading…
Reference in New Issue