From 4b5a97e3989b6ae921019a32932e64d482ae8927 Mon Sep 17 00:00:00 2001 From: Antoine Cully Date: Wed, 26 Jul 2023 10:14:08 +0900 Subject: [PATCH] fix bugs on add_paper.py --- add_paper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/add_paper.py b/add_paper.py index 6756573..51e0f2f 100644 --- a/add_paper.py +++ b/add_paper.py @@ -13,7 +13,7 @@ if output: print("\033[91m WARNING: There are currently either local or remote changes. Please pull/push before adding more papers:\033[0m") print(output) - #exit() + exit() for i in range(1, len(sys.argv)): paper_title = sys.argv[i] @@ -35,7 +35,7 @@ proceed_answer = input( f'\033[92m\t found and Arxiv and Cross ref (both should be the title you expect): \n\t{arxivdict["title"]} (arxiv)\n\t{crossrefdict["message"]["items"][0]["title"][0]} (crossref).\033[0m\n Correct and proceed?\n y(yes)|anything else to quit: \n') if proceed_answer != "y": print("\033[91m WARNING: Asked to not proceed. \033[0m") - + continue #get bib from DOI