aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--scripts/sampledata.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/sampledata.py b/scripts/sampledata.py
index 4777b6f9..8b060e82 100644
--- a/scripts/sampledata.py
+++ b/scripts/sampledata.py
@@ -60,7 +60,7 @@ def fetch_all_traits(species, group, type_, dataset):
"dataset": dataset,
"search_terms_or": "*",
}).trait_list:
- yield result.get('name')
+ yield result.get('name') or result.get('display_name')
if __name__ == "__main__":