aboutsummaryrefslogtreecommitdiff
path: root/SBoTools
diff options
context:
space:
mode:
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) + " "