Change avatar path

This commit is contained in:
bashrc committed 2020-12-18 23:34:52 +00:00
1 parent 77ea08b7fc
commit 30d95182d3
1 file changed
+1 -1
+1 -1
View File
@@ -154,7 +154,7 @@ def randomizeActorImages(personJson: {}) -> None:
# secure names
randStr = str(randint(10000000000000, 99999999999999)) # nosec
personJson['icon']['url'] = \
personId + '/avatar' + randStr + '.' + existingExtension
'/accounts/avatars/avatar' + randStr + '.' + existingExtension
lastPartOfFilename = personJson['image']['url'].split('/')[-1]
existingExtension = lastPartOfFilename.split('.')[1]
randStr = str(randint(10000000000000, 99999999999999)) # nosec