#2303 hub: query_buildroots fix query behaviour
Merged 2 years ago by tkopecek. Opened 2 years ago by tkopecek.
tkopecek/koji issue2302  into  master

file modified
+3 -3
@@ -5382,7 +5382,7 @@ 

          result = set(query.execute())

          candidate_buildroot_ids = result

          if not candidate_buildroot_ids:

-             return []

+             return _applyQueryOpts([], queryOpts)

  

      if archiveID is not None:

          joins.insert(0, 'buildroot_archives ON buildroot.id = buildroot_archives.buildroot_id')
@@ -5396,7 +5396,7 @@ 

          else:

              candidate_buildroot_ids = result

          if not candidate_buildroot_ids:

-             return []

+             return _applyQueryOpts([], queryOpts)

  

      if taskID is not None:

          clauses.append('standard_buildroot.task_id = %(taskID)i')
@@ -5409,7 +5409,7 @@ 

          else:

              candidate_buildroot_ids = result

          if not candidate_buildroot_ids:

-             return []

+             return _applyQueryOpts([], queryOpts)

  

      if candidate_buildroot_ids:

          candidate_buildroot_ids = list(candidate_buildroot_ids)

Commit 2ed90d0 fixes this pull-request

Pull-Request has been merged by tkopecek

2 years ago

Metadata Update from @mfilip:
- Pull-request tagged with: testing-done

2 years ago