From ef1ccfd59ef9c7f813d2ad9b47861e12b8c0d2ed Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 25 Apr 2016 04:22:15 +0530 Subject: [PATCH] Push lesser option down. --- buku | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/buku b/buku index 3fe5b41..a4ed7e5 100755 --- a/buku +++ b/buku @@ -1248,13 +1248,6 @@ if args.sany is not None: if args.sall is not None: searchdb(cur, args.sall, True) -# Replace a tag in DB -if args.replace is not None: - if args.replace[1] == "none": - replaceTags(conn, cur, args.replace[0], "") - else: - replaceTags(conn, cur, args.replace[0], args.replace[1]) - # Update record if update == True: if len(keywords) < 1: @@ -1270,6 +1263,13 @@ if args.printindex is not None: sys.exit(1) printdb(cur, args.printindex) +# Replace a tag in DB +if args.replace is not None: + if args.replace[1] == "none": + replaceTags(conn, cur, args.replace[0], "") + else: + replaceTags(conn, cur, args.replace[0], args.replace[1]) + # Print records with blank title or tag if args.empty == True: printdb(cur, 0, True)