Skip to content

Commit

Permalink
Merge pull request #1447 from henrykironde/citations
Browse files Browse the repository at this point in the history
Clean up get citation
  • Loading branch information
apoorvaeternity committed Mar 19, 2020
2 parents 9dcff5b + b489b44 commit f567b43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions retriever/lib/scripts.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,15 +281,17 @@ def get_script_version_upstream(dataset, repo=REPOSITORY):

def get_script_citation(dataset=None):
"""Get the citation list for a script"""
if dataset is None:
if dataset is not None:
dataset = dataset.strip()
if not dataset:
return [VERSION]
citations = []
scripts = name_matches(reload_scripts(), dataset)
if scripts:
citations = []
for script in scripts:
citations.append(script.citation)
return citations
return None
return citations


def get_dataset_names_upstream(keywords=None, licenses=None, repo=REPOSITORY):
Expand Down

0 comments on commit f567b43

Please sign in to comment.