Accommodate chunk_sequence which now always yields lists.

master
voussoir 2020-08-28 17:57:15 -07:00
parent c5fbcf0056
commit 0b4542089b
1 changed files with 1 additions and 1 deletions

View File

@ -866,7 +866,7 @@ class Photo(ObjectBase):
''' '''
Create the filepath that should be the location of our thumbnail. Create the filepath that should be the location of our thumbnail.
''' '''
chunked_id = helpers.chunk_sequence(self.id, 3) chunked_id = [''.join(chunk) for chunk in helpers.chunk_sequence(self.id, 3)]
(folder, basename) = (chunked_id[:-1], chunked_id[-1]) (folder, basename) = (chunked_id[:-1], chunked_id[-1])
folder = os.sep.join(folder) folder = os.sep.join(folder)
folder = self.photodb.thumbnail_directory.join(folder) folder = self.photodb.thumbnail_directory.join(folder)