mirror of https://gitlab.com/bashrc2/epicyon
Return path to cached avatar
parent
40aaad1a98
commit
7285eaf7e5
|
@ -74,7 +74,8 @@ def updateAvatarImageCache(session,baseDir: str,httpPrefix: str,actor: str,avata
|
||||||
if personJson:
|
if personJson:
|
||||||
storePersonInCache(baseDir,actor,personJson,personCache)
|
storePersonInCache(baseDir,actor,personJson,personCache)
|
||||||
return getPersonAvatarUrl(baseDir,actor,personCache)
|
return getPersonAvatarUrl(baseDir,actor,personCache)
|
||||||
return None
|
return None
|
||||||
|
return avatarImageFilename.replace(baseDir+'/cache','')
|
||||||
|
|
||||||
def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
|
def getPersonAvatarUrl(baseDir: str,personUrl: str,personCache: {}) -> str:
|
||||||
"""Returns the avatar url for the person
|
"""Returns the avatar url for the person
|
||||||
|
|
Loading…
Reference in New Issue