Comment out debug

main
Bob Mottram 2021-01-31 10:48:21 +00:00
parent 658ff4a44f
commit 8cdcc92763
1 changed files with 6 additions and 6 deletions

View File

@ -591,24 +591,24 @@ def addEmojiToDisplayName(baseDir: str, httpPrefix: str,
displayName = displayName.replace('<p>', '').replace('</p>', '') displayName = displayName.replace('<p>', '').replace('</p>', '')
emojiTags = {} emojiTags = {}
print('TAG: displayName before tags: ' + displayName) # print('TAG: displayName before tags: ' + displayName)
displayName = \ displayName = \
addHtmlTags(baseDir, httpPrefix, addHtmlTags(baseDir, httpPrefix,
nickname, domain, displayName, [], emojiTags) nickname, domain, displayName, [], emojiTags)
displayName = displayName.replace('<p>', '').replace('</p>', '') 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 # convert the emoji dictionary to a list
emojiTagsList = [] emojiTagsList = []
for tagName, tag in emojiTags.items(): for tagName, tag in emojiTags.items():
emojiTagsList.append(tag) emojiTagsList.append(tag)
print('TAG: emoji tags list: ' + str(emojiTagsList)) # print('TAG: emoji tags list: ' + str(emojiTagsList))
if not inProfileName: if not inProfileName:
displayName = \ displayName = \
replaceEmojiFromTags(displayName, emojiTagsList, 'post header') replaceEmojiFromTags(displayName, emojiTagsList, 'post header')
else: else:
displayName = \ displayName = \
replaceEmojiFromTags(displayName, emojiTagsList, 'profile') replaceEmojiFromTags(displayName, emojiTagsList, 'profile')
print('TAG: displayName after tags 2: ' + displayName) # print('TAG: displayName after tags 2: ' + displayName)
# remove any stray emoji # remove any stray emoji
while ':' in displayName: while ':' in displayName:
@ -619,8 +619,8 @@ def addEmojiToDisplayName(baseDir: str, httpPrefix: str,
displayName = displayName.replace(':' + emojiStr + ':', '').strip() displayName = displayName.replace(':' + emojiStr + ':', '').strip()
if prevDisplayName == displayName: if prevDisplayName == displayName:
break break
print('TAG: displayName after tags 3: ' + displayName) # print('TAG: displayName after tags 3: ' + displayName)
print('TAG: displayName after tag replacements: ' + displayName) # print('TAG: displayName after tag replacements: ' + displayName)
return displayName return displayName