Remove .distinct() from these queries
This commit is contained in:
parent
cfa03951e1
commit
af4511455f
1 changed files with 0 additions and 2 deletions
|
@ -33,7 +33,6 @@ def _get_image_to_export(version):
|
|||
|
||||
images = (Image
|
||||
.select(candidates.c.docker_image_id, candidates.c.uuid, candidates.c.checksum)
|
||||
.distinct()
|
||||
.from_(candidates)
|
||||
.order_by(db_random_func())
|
||||
.tuples()
|
||||
|
@ -55,7 +54,6 @@ def _get_image_to_export(version):
|
|||
|
||||
images = (Image
|
||||
.select(candidates.c.docker_image_id, candidates.c.uuid, candidates.c.checksum, candidates.c.parent_docker_image_id, candidates.c.parent_storage_uuid)
|
||||
.distinct()
|
||||
.from_(candidates)
|
||||
.order_by(db_random_func())
|
||||
.tuples()
|
||||
|
|
Reference in a new issue