forked from indymedia/epicyon
Slash
parent
1fb429136e
commit
fc5b96c796
4
theme.py
4
theme.py
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue