Use DELIM

This commit is contained in:
Arun Prakash Jana 2017-04-07 20:43:24 +05:30
parent 26def85793
commit d8f081cd4d
No known key found for this signature in database
GPG Key ID: A75979F35C080412

View File

@ -757,7 +757,7 @@ class BukuDb:
arguments += (title_to_insert,)
to_update = True
if not to_update: # Nothing to update
if not to_update: # Nothing to update
# Show bookmark if tags were appended to deleted
if tag_modified and self.chatty:
self.print_rec(index)
@ -1730,7 +1730,7 @@ class BukuDb:
query = 'UPDATE bookmarks SET tags = ? WHERE id = ?'
for row in resultset:
oldtags = row[1]
if oldtags == ',':
if oldtags == DELIM:
continue
tags = parse_tags([oldtags])
@ -2584,7 +2584,7 @@ def parse_temp_file_content(content):
elif title == '-':
title = ''
tags = ','
tags = DELIM
if len(content) > 2:
tags = parse_tags([content[2]])