Change order of arguments to update_bookmark().

This commit is contained in:
Arun Prakash Jana 2016-05-29 12:14:14 +05:30
parent 57ffa0f8c9
commit 612247ace7
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

4
buku
View File

@ -248,7 +248,7 @@ class BukuDb:
print('\x1b[1mEXCEPTION\x1b[21m [add_bookmark]: (%s) %s' % (type(e).__name__, e))
def update_bookmark(self, index, url='', tag_manual=None, title_manual=None, desc=None):
def update_bookmark(self, index, url='', title_manual=None, tag_manual=None, desc=None):
""" Update an existing record at index
:param index: int position to update
@ -1502,7 +1502,7 @@ if __name__ == '__main__':
if tagManual is not None and not (tagManual[0] == ',' and len(tagManual) == 1):
tags = parse_tags(tagManual)
bdb.update_bookmark(int(args.update[0]), new_url, tags, titleManual, description)
bdb.update_bookmark(int(args.update[0]), new_url, titleManual, tags, description)
# Delete record(s)
if args.delete is not None: