Skip to content

Commit

Permalink
✨ openalex url for source and work
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon3640 committed Apr 15, 2024
1 parent e945267 commit da31eda
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions app/services/work.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ def update_source(work: WorkProccessed):
source = source_service.get_by_id(id=work.source.id)
serials = {}
for serial in source.external_ids:
serials[serial.source] = (
serial.id if serial.source != "openalex" else work.openalex_url
)
serials[serial.source] = serial.id
work.source.serials = serials

def get_info(self, *, id: str) -> dict[str, Any]:
Expand Down

0 comments on commit da31eda

Please sign in to comment.