mirror of https://gitlab.com/bashrc2/epicyon
Comment out debug
parent
658ff4a44f
commit
8cdcc92763
|
@ -591,24 +591,24 @@ def addEmojiToDisplayName(baseDir: str, httpPrefix: str,
|
|||
|
||||
displayName = displayName.replace('<p>', '').replace('</p>', '')
|
||||
emojiTags = {}
|
||||
print('TAG: displayName before tags: ' + displayName)
|
||||
# print('TAG: displayName before tags: ' + displayName)
|
||||
displayName = \
|
||||
addHtmlTags(baseDir, httpPrefix,
|
||||
nickname, domain, displayName, [], emojiTags)
|
||||
displayName = displayName.replace('<p>', '').replace('</p>', '')
|
||||
print('TAG: displayName after tags: ' + displayName)
|
||||
# print('TAG: displayName after tags: ' + displayName)
|
||||
# convert the emoji dictionary to a list
|
||||
emojiTagsList = []
|
||||
for tagName, tag in emojiTags.items():
|
||||
emojiTagsList.append(tag)
|
||||
print('TAG: emoji tags list: ' + str(emojiTagsList))
|
||||
# print('TAG: emoji tags list: ' + str(emojiTagsList))
|
||||
if not inProfileName:
|
||||
displayName = \
|
||||
replaceEmojiFromTags(displayName, emojiTagsList, 'post header')
|
||||
else:
|
||||
displayName = \
|
||||
replaceEmojiFromTags(displayName, emojiTagsList, 'profile')
|
||||
print('TAG: displayName after tags 2: ' + displayName)
|
||||
# print('TAG: displayName after tags 2: ' + displayName)
|
||||
|
||||
# remove any stray emoji
|
||||
while ':' in displayName:
|
||||
|
@ -619,8 +619,8 @@ def addEmojiToDisplayName(baseDir: str, httpPrefix: str,
|
|||
displayName = displayName.replace(':' + emojiStr + ':', '').strip()
|
||||
if prevDisplayName == displayName:
|
||||
break
|
||||
print('TAG: displayName after tags 3: ' + displayName)
|
||||
print('TAG: displayName after tag replacements: ' + displayName)
|
||||
# print('TAG: displayName after tags 3: ' + displayName)
|
||||
# print('TAG: displayName after tag replacements: ' + displayName)
|
||||
|
||||
return displayName
|
||||
|
||||
|
|
Loading…
Reference in New Issue