Push lesser option down.

This commit is contained in:
Arun Prakash Jana 2016-04-25 04:22:15 +05:30
parent 7a0d98e09f
commit ef1ccfd59e
No known key found for this signature in database
GPG Key ID: C0A712ED95043DCB

14
buku
View File

@ -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)