From d37ee3d4604ccaaf86f8c16ab93989378d4628ea Mon Sep 17 00:00:00 2001 From: Yuman Hordijk Date: Tue, 30 Apr 2024 10:35:13 +0200 Subject: [PATCH] We are now caching retrieved data. When #221 is merged we will cache them to a fil --- src/tcutility/cite.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tcutility/cite.py b/src/tcutility/cite.py index 6ffe8635..2d735619 100644 --- a/src/tcutility/cite.py +++ b/src/tcutility/cite.py @@ -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. @@ -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.