forked from indymedia/epicyon
Tidying
parent
6bf78d35c4
commit
e3df836d3b
|
@ -114,7 +114,8 @@ def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
|
||||||
"""Returns the avatar url for the person
|
"""Returns the avatar url for the person
|
||||||
"""
|
"""
|
||||||
personJson = getPersonFromCache(baseDir,personUrl,personCache)
|
personJson = getPersonFromCache(baseDir,personUrl,personCache)
|
||||||
if personJson:
|
if not personJson:
|
||||||
|
return None
|
||||||
# get from locally stored image
|
# get from locally stored image
|
||||||
actorStr=personJson['id'].replace('/','-')
|
actorStr=personJson['id'].replace('/','-')
|
||||||
avatarImagePath=baseDir+'/cache/avatars/'+actorStr
|
avatarImagePath=baseDir+'/cache/avatars/'+actorStr
|
||||||
|
|
Loading…
Reference in New Issue