Change avatar path

main
Bob Mottram 2020-12-18 23:34:52 +00:00
parent 77ea08b7fc
commit 30d95182d3
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ def randomizeActorImages(personJson: {}) -> None:
# secure names # secure names
randStr = str(randint(10000000000000, 99999999999999)) # nosec randStr = str(randint(10000000000000, 99999999999999)) # nosec
personJson['icon']['url'] = \ personJson['icon']['url'] = \
personId + '/avatar' + randStr + '.' + existingExtension '/accounts/avatars/avatar' + randStr + '.' + existingExtension
lastPartOfFilename = personJson['image']['url'].split('/')[-1] lastPartOfFilename = personJson['image']['url'].split('/')[-1]
existingExtension = lastPartOfFilename.split('.')[1] existingExtension = lastPartOfFilename.split('.')[1]
randStr = str(randint(10000000000000, 99999999999999)) # nosec randStr = str(randint(10000000000000, 99999999999999)) # nosec