Skip to content

Commit

Permalink
Fixed error in calling concept_metadata. Updated github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
tjacovich committed Oct 7, 2024
1 parent 602825d commit 3ddeeca
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/python_actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
run: |
py.test
- uses: actions/upload-artifact@v4
- uses: actions/upload-artifact@v3
with:
name: coverage-citationcapture
path: .coverage
Expand All @@ -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

Expand Down
2 changes: 1 addition & 1 deletion ADSCitationCapture/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3ddeeca

Please sign in to comment.