Updated the code to search for only non deleted rules
This commit is contained in:
parent
c21ccdd85f
commit
834f24a048
@ -49,7 +49,7 @@ def find_closest_match(user_input):
|
|||||||
user_tokens = user_input.split()
|
user_tokens = user_input.split()
|
||||||
results = []
|
results = []
|
||||||
cursor = conn.cursor()
|
cursor = conn.cursor()
|
||||||
cursor.execute("SELECT summary, modules, name, rule_id FROM rules")
|
cursor.execute("SELECT summary, modules, name, rule_id FROM rules WHERE deleted = 0")
|
||||||
rows = cursor.fetchall()
|
rows = cursor.fetchall()
|
||||||
cursor.close()
|
cursor.close()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user