Skip to content

Commit

Permalink
Fix bug where we weren't checking the staging asco API while populati…
Browse files Browse the repository at this point in the history
…ng source fields
  • Loading branch information
susannasiebert committed Feb 6, 2020
1 parent 07d84e1 commit beefead
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/scrapers/asco.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ def self.get_citation_from_asco_id(id)
def self.populate_source_fields(source)
record_resp = call_asco_abstract_api(source.citation_id)
query_resp = call_asco_query_api_by_asco_id(source.citation_id)
if not query_resp.citations.any?
query_resp = call_asco_query_stage_api_by_asco_id(source.citation_id)
end
source.description = get_citation_from_asco_id(source.citation_id)
source.asco_presenter = record_resp.presenter
source.asco_abstract_id = record_resp.asco_abstract_id
Expand Down

0 comments on commit beefead

Please sign in to comment.