From 8524f2852d681b47001eed72253aff78b701b570 Mon Sep 17 00:00:00 2001 From: Matthieu Schaller <schaller@strw.leidenuniv.nl> Date: Mon, 17 Apr 2023 20:47:28 +0200 Subject: [PATCH] Invert the paper counter and list the total at the top --- query.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/query.py b/query.py index bf02a91..94085f3 100644 --- a/query.py +++ b/query.py @@ -4,12 +4,13 @@ import sys # Query papers citing the two SWIFT ADS entries query = ADSQueryWrapper(sys.argv[1]) -query_data = query.get("citations(2016pasc.conf....2S) or citations(2018ascl.soft05020S)", fl="title,bibcode,first_author_norm,date,year,doi,author_count,pub_raw", rows=1000) +query_data = query.get("citations(2016pasc.conf....2S) or citations(2018ascl.soft05020S)", fl="title,bibcode,first_author_norm,date,year,doi,author_count,pub_raw,bibstem", rows=1000) paper_list = query_data.papers # Process the data to make the title a string and not an array of strings for paper in paper_list: paper.title = paper.title[0] + paper.bibstem = paper.bibstem[0] # Create a dictionary of cards my_list = dict({"num_papers": query_data.num_found, -- GitLab