Skip to content

Commit

Permalink
Merge pull request #48 from yymao/u/yymao/change-first-author
Browse files Browse the repository at this point in the history
Change the ADS first author query
  • Loading branch information
yymao authored Dec 6, 2024
2 parents 5ec8963 + 0070f43 commit 2060790
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adstex.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
except ImportError:
from urllib import unquote

__version__ = "0.5.3"
__version__ = "0.5.4"

_this_year = date.today().year % 100
_this_cent = date.today().year // 100
Expand Down Expand Up @@ -176,7 +176,7 @@ def id2bibcode(id_this, possible_id_types=("bibcode", "doi", "arxiv")):


def authoryear2bibcode(author, year, key):
q = 'author:"^{}" year:{} database:{}'.format(author, year, _database)
q = 'first_author:"{}" year:{} database:{}'.format(author, year, _database)
entries = list(
fixedAdsSearchQuery(
q=q,
Expand Down

0 comments on commit 2060790

Please sign in to comment.