From c8517ae0c6cc6456583f33e6d059b307d985c6e8 Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Sat, 26 Mar 2022 16:15:15 -0400 Subject: Fix sbosearch without tags --- SBoTools/plugin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/SBoTools/plugin.py b/SBoTools/plugin.py index 9e03ad7..043002f 100644 --- a/SBoTools/plugin.py +++ b/SBoTools/plugin.py @@ -108,8 +108,11 @@ class SBoTools(callbacks.Plugin): cursor = db.cursor() tags = False; - sql = "select distinct(b.id) from builds b, tags t " - sql += "where b.id = t.build_id" + if(tflag): + sql = "select distinct(b.id) from builds b, tags t " + sql += "where b.id = t.build_id" + else: + sql = "select distinct(b.id) from builds b where b.id=b.id" if(category is not None): sql += " and b.category=" + str(category) + " " -- cgit v1.2.3