Skip to content

Commit

Permalink
Merge pull request #647 from alliance-genome/fix_agms
Browse files Browse the repository at this point in the history
Added fix for Models page
  • Loading branch information
oblodgett authored Apr 5, 2023
2 parents 8f28d21 + 518ccd3 commit 1198355
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/etl/affected_genomic_model_etl.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ def cross_ref_process(self, agm_record):
# some pages collection have 0 elements
if pages is not None and len(pages) > 0:
for page in pages:
if page.lower() in ['fish', 'genotype', 'strain']:
cross_ref = self.etlh.rdh2.return_url_from_key_value(
prefix, local_crossref_id, alt_page=page)
page = page.lower()
if page in ['fish', 'genotype', 'strain']:
cross_ref = self.etlh.rdh2.return_url_from_key_value(prefix, local_crossref_id, alt_page=page)
return cross_ref

def agm_process(self, agms, agm_record, date_produced):
Expand Down

0 comments on commit 1198355

Please sign in to comment.