Skip to content

Commit

Permalink
We are now caching retrieved data. When #221 is merged we will cache …
Browse files Browse the repository at this point in the history
…them to a fil
  • Loading branch information
YHordijk committed Apr 30, 2024
1 parent 15e45cc commit d37ee3d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tcutility/cite.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@


# @cache.cache_file('dois')
@cache.cache
def _get_doi_data(doi: str) -> dict:
'''
Get information about an article using the crossref.org API.
Expand All @@ -18,6 +19,7 @@ def _get_doi_data(doi: str) -> dict:


# @cache.cache_file('journal_abbrvs')
@cache.cache
def _get_journal_abbreviation(journal: str) -> str:
'''
Get the journal name abbreviation using the abbreviso API.
Expand Down

0 comments on commit d37ee3d

Please sign in to comment.