From 2f6ab26f8cbe558ec661eee1892f842cc158e20c Mon Sep 17 00:00:00 2001 From: Arun Prakash Jana Date: Mon, 9 Jan 2017 22:41:36 +0530 Subject: [PATCH] Maintain search_opted flag. --- buku.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/buku.py b/buku.py index 19ade6c..f0b26ab 100755 --- a/buku.py +++ b/buku.py @@ -2469,7 +2469,6 @@ def main(): else: # Use sub prompt to list all tags prompt(bdb, None, args.noprompt, subprompt=True) - search_opted = False else: search_opted = False @@ -2520,7 +2519,7 @@ def main(): if not search_opted: bdb.update_rec(0, url_in, title_in, tags, desc_in, args.immutable, args.threads) - elif update_search_results: + elif update_search_results and search_results is not None: print("Updated results:\n") pos = len(search_results) - 1