Skip to content

Commit

Permalink
Update ckanext/recombinant/logic.py
Browse files Browse the repository at this point in the history
Co-authored-by: Ian Ward <ian@excess.org>
  • Loading branch information
JVickery-TBS and wardi authored Sep 20, 2024
1 parent 26432d7 commit e559f6a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ckanext/recombinant/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,14 +262,12 @@ def _update_datastore(lc, geno, dataset, force_update=False):
foreign_keys = {}
if chromo_foreign_keys:
for f_table, field_map in chromo_foreign_keys.items():
is_chromo_name = False
for _chromo in geno['resources']:
# try to get the resource id from chromo name
if f_table == _chromo['resource_name']:
is_chromo_name = True
foreign_keys[resource_ids[_chromo['resource_name']]] = field_map
break
if not is_chromo_name:
else:
foreign_keys[f_table] = field_map

lc.action.datastore_create(
Expand Down

0 comments on commit e559f6a

Please sign in to comment.