Remove .distinct() from these queries

This commit is contained in:
Quentin Machu 2015-11-05 16:09:13 -05:00 committed by Jimmy Zelinskie
parent cfa03951e1
commit af4511455f

View file

@ -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()