From 3ddeecaa2a0322582bfe48a5116ff08a93685bdf Mon Sep 17 00:00:00 2001 From: tjacovich Date: Mon, 7 Oct 2024 18:10:08 -0400 Subject: [PATCH] Fixed error in calling concept_metadata. Updated github actions. --- .github/workflows/python_actions.yml | 4 ++-- ADSCitationCapture/tasks.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/python_actions.yml b/.github/workflows/python_actions.yml index 193a6d8..5f379f1 100644 --- a/.github/workflows/python_actions.yml +++ b/.github/workflows/python_actions.yml @@ -52,7 +52,7 @@ jobs: run: | py.test - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v3 with: name: coverage-citationcapture path: .coverage @@ -74,7 +74,7 @@ jobs: python -m pip install --upgrade wheel setuptools pip pip install coverage==5.2.1 pip install coveralls==2.2.0 - - uses: actions/download-artifact@v4 + - uses: actions/download-artifact@v3 with: name: coverage-citationcapture diff --git a/ADSCitationCapture/tasks.py b/ADSCitationCapture/tasks.py index a928c96..610c0b5 100644 --- a/ADSCitationCapture/tasks.py +++ b/ADSCitationCapture/tasks.py @@ -560,7 +560,7 @@ def task_maintenance_metadata(dois, bibcodes, reset=False): # and they are not a version of something else concept_doi = len(parsed_metadata.get('version_of', [])) == 0 and len(parsed_metadata.get('versions', [])) >= 1 if concept_doi: - concept_metadata=db.get_citation_target_metadata(app, doi, curate=True, concept=concept_doi) + concept_metadata=db.get_citation_target_metadata(app, registered_record['content'], curate=True, concept=concept_doi)['parsed'] different_bibcodes = registered_record['bibcode'] != parsed_metadata['bibcode'] if different_bibcodes and concept_doi: # Concept DOI publication date changes with newer software version