main
Bob Mottram 2020-10-13 22:51:06 +01:00
parent 1fb429136e
commit fc5b96c796
1 changed files with 1 additions and 3 deletions

View File

@ -1020,9 +1020,7 @@ def setNewsAvatar(baseDir: str, name: str,
avatarFilename = \
httpPrefix + '://' + domainFull + '/users/' + nickname + '.png'
avatarFilename = avatarFilename.replace('/', '-')
filename = baseDir + 'cache/avatars/' + avatarFilename
print('news avatar new filename ' + newFilename)
print('news avatar filename ' + filename)
filename = baseDir + '/cache/avatars/' + avatarFilename
if os.path.isfile(filename):
os.remove(filename)