Commit 2a761817 authored by Betoule Marc's avatar Betoule Marc
Browse files

bug fix in lspipe: require exact match

parent 69275c0d
...@@ -75,7 +75,7 @@ class Pipe(): ...@@ -75,7 +75,7 @@ class Pipe():
self.cache = Cache() self.cache = Cache()
self.conn = self.cache.getdb(pipepath, dbfile) self.conn = self.cache.getdb(pipepath, dbfile)
if tag: if tag:
s = self.conn.execute('select seg_id from segments where tag like ?',("%"+tag+"%",)).fetchone() s = self.conn.execute('select seg_id from segments where tag == ?',(tag,)).fetchone()
else: else:
s = self.conn.execute('select seg_id from segments where curr_dir like ?',("%"+self.path+"%",)).fetchone() s = self.conn.execute('select seg_id from segments where curr_dir like ?',("%"+self.path+"%",)).fetchone()
lstseg = [s[0]] lstseg = [s[0]]
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment