main
Bob Mottram 2020-10-13 22:53:33 +01:00
parent fc5b96c796
commit 41a3f22fe2
1 changed files with 2 additions and 0 deletions

View File

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