main
Bob Mottram 2020-05-04 19:25:53 +01:00
parent a9206ee855
commit 2625a7083b
1 changed files with 1 additions and 1 deletions

View File

@ -256,7 +256,7 @@ def getPersonAvatarUrl(baseDir: str, personUrl: str, personCache: {}) -> str:
# get from locally stored image
actorStr = personJson['id'].replace('/', '-')
avatarImagePath = \
getFileCaseInsensitive(baseDir + '/cache/avatars/' + actorStr
getFileCaseInsensitive(baseDir + '/cache/avatars/' + actorStr)
if os.path.isfile(avatarImagePath + '.png'):
return '/avatars/' + actorStr + '.png'
elif os.path.isfile(avatarImagePath + '.jpg'):