aboutsummaryrefslogtreecommitdiff
path: root/SBoTools
diff options
context:
space:
mode:
authorB. Watson <yalhcru@gmail.com>2022-03-26 16:15:15 -0400
committerB. Watson <yalhcru@gmail.com>2022-03-26 16:15:15 -0400
commitc8517ae0c6cc6456583f33e6d059b307d985c6e8 (patch)
treebe970cfaf5ca16e5716a31da70a769af56b0b756 /SBoTools
parente6b7639972a3b8e373a48d5094590075d2445208 (diff)
downloadlimnoria.slackfacts.plugins-c8517ae0c6cc6456583f33e6d059b307d985c6e8.tar.gz
Fix sbosearch without tags
Diffstat (limited to 'SBoTools')
-rw-r--r--SBoTools/plugin.py7
1 files 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) + " "