diff options
Diffstat (limited to 'packages/utils.py')
-rw-r--r-- | packages/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/packages/utils.py b/packages/utils.py index 8231347..b86b6eb 100644 --- a/packages/utils.py +++ b/packages/utils.py @@ -123,7 +123,7 @@ SELECT p.id, q.id cursor.execute(sql, [arch_a.id, arch_b.id]) results = cursor.fetchall() # column A will always have a value, column B might be NULL - to_fetch = [row[0] for row in results] + to_fetch = set(row[0] for row in results) # fetch all of the necessary packages pkgs = Package.objects.normal().in_bulk(to_fetch) # now build a list of tuples containing differences |