Skip to content

Commit

Permalink
removed need of the function
Browse files Browse the repository at this point in the history
  • Loading branch information
talavis committed Mar 20, 2019
1 parent c673791 commit a6e75ed
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions backend/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -493,19 +493,3 @@ def build_dict_from_row(row):
continue
d[field] = value
return d


def get_reference_set_for_dataset(dataset):
"""
Get the reference set associated with a dataset
Args:
dataset (str): short name of the dataset
Returns:
ReferenceSet: the associated reference set; returns None if not available
"""
try:
return (Dataset.select()
.where(Dataset.short_name==dataset)
.get()).reference_set
except Dataset.DoesNotExist:
return None

0 comments on commit a6e75ed

Please sign in to comment.