diff options
author | B. Watson <yalhcru@gmail.com> | 2022-03-26 16:15:15 -0400 |
---|---|---|
committer | B. Watson <yalhcru@gmail.com> | 2022-03-26 16:15:15 -0400 |
commit | c8517ae0c6cc6456583f33e6d059b307d985c6e8 (patch) | |
tree | be970cfaf5ca16e5716a31da70a769af56b0b756 | |
parent | e6b7639972a3b8e373a48d5094590075d2445208 (diff) | |
download | limnoria.slackfacts.plugins-c8517ae0c6cc6456583f33e6d059b307d985c6e8.tar.gz |
Fix sbosearch without tags
-rw-r--r-- | SBoTools/plugin.py | 7 |
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) + " " |