Push lesser option down.
This commit is contained in:
parent
7a0d98e09f
commit
ef1ccfd59e
14
buku
14
buku
@ -1248,13 +1248,6 @@ if args.sany is not None:
|
|||||||
if args.sall is not None:
|
if args.sall is not None:
|
||||||
searchdb(cur, args.sall, True)
|
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
|
# Update record
|
||||||
if update == True:
|
if update == True:
|
||||||
if len(keywords) < 1:
|
if len(keywords) < 1:
|
||||||
@ -1270,6 +1263,13 @@ if args.printindex is not None:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
printdb(cur, args.printindex)
|
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
|
# Print records with blank title or tag
|
||||||
if args.empty == True:
|
if args.empty == True:
|
||||||
printdb(cur, 0, True)
|
printdb(cur, 0, True)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user