Add a helper method to Image to parse ancestor string.
This commit is contained in:
parent
cd8b45e25b
commit
1d8b72235a
6 changed files with 33 additions and 32 deletions
|
@ -35,7 +35,7 @@ def backfill_aggregate_sizes():
|
|||
|
||||
aggregate_size = image.storage.image_size
|
||||
|
||||
image_ids = image.ancestors.split('/')[1:-1]
|
||||
image_ids = image.ancestor_id_list()
|
||||
for image_id in image_ids:
|
||||
to_add = db_for_update(Image
|
||||
.select(Image, ImageStorage)
|
||||
|
|
Reference in a new issue