Return if old and new tags are same.

Signed-off-by: Arun Prakash Jana <engineerarun@gmail.com>
This commit is contained in:
Arun Prakash Jana 2016-03-19 22:49:58 +05:30
parent 017f7b82cd
commit 9e1e0b34d7

4
buku
View File

@ -417,6 +417,10 @@ def replaceTags(conn, cur, orig, new):
else:
new = ',' + new + ','
if orig == new:
print("Tags are same.")
return
cur.execute("SELECT id, tags FROM bookmarks WHERE tags LIKE ?", ('%' + orig + '%',))
results = cur.fetchall()