Skip to content

Commit

Permalink
Merge pull request EUDAT-B2SHARE#1649 from emanueldima/fix-list_db_pu…
Browse files Browse the repository at this point in the history
…blished_records

ignore deleted records in list_db_published_records
  • Loading branch information
nharraud authored Feb 14, 2018
2 parents bf5d4ba + cadf544 commit 7692229
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion b2share/modules/records/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ def list_db_published_records():
query = RecordMetadata.query.filter(RecordMetadata.json is not None)
for obj in query.all():
record = Record(obj.json, model=obj)
if is_publication(record.model):
if record.model.json and is_publication(record.model):
yield record

0 comments on commit 7692229

Please sign in to comment.