Skip to content
Snippets Groups Projects
Commit 8524f285 authored by Matthieu Schaller's avatar Matthieu Schaller
Browse files

Invert the paper counter and list the total at the top

parent 0c2d0e80
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment