Skip to content

Commit

Permalink
1593 populate existing asset storage image (#1617)
Browse files Browse the repository at this point in the history
* black and flake 8 updates

* add ordering on qs

* black changes

* back changes

* fix bad conflict resolution change
  • Loading branch information
jkueloc committed Feb 23, 2022
1 parent 3db47dc commit d4db5bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions concordia/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,9 +363,9 @@ def populate_storage_image_values(asset_qs=None):

# only fetch assest with no storgae image value
asset_qs = (
Asset.objects.filter(storage_image__isnull=True).order_by("id")
# .prefetch_related("item__project__campaign")[:20000]
.select_related("item__project__campaign")[:25000]
Asset.objects.filter(storage_image__isnull=True)
.order_by("id")
.prefetch_related("item__project__campaign")[:20000]
)

updated_count = 0
Expand Down

0 comments on commit d4db5bd

Please sign in to comment.