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 e559f6a commit acd924b
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions ckanext/recombinant/logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -378,15 +378,11 @@ def datastore_fields(fs, text_types):
"""
return the datastore field definitions for fields fs
"""
ds_fields = []
for f in fs:
# exclude Published Resource fields from the Recombinant Resource DataStore
if f.get('published_resource_computed_field', False):
continue
ds_fields.append({
'id': f['datastore_id'],
'type': datastore_column_type(f['datastore_type'], text_types)})
return ds_fields
return [{
'id': f['datastore_id'],
'type': datastore_column_type(f['datastore_type'], text_types)}
for f in fs
if not f.get('published_resource_computed_field', False)]


def _datastore_match(fs, fields):
Expand Down

0 comments on commit acd924b

Please sign in to comment.