From 99404533a8be41fe40d00b0c43f02da591c00c35 Mon Sep 17 00:00:00 2001 From: Adam Darr Date: Wed, 28 Jun 2017 15:58:06 -0400 Subject: [PATCH] minor updates --- src/scripts/compare_to_results/compare_to_results.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/scripts/compare_to_results/compare_to_results.py b/src/scripts/compare_to_results/compare_to_results.py index d79b2479..c3404577 100644 --- a/src/scripts/compare_to_results/compare_to_results.py +++ b/src/scripts/compare_to_results/compare_to_results.py @@ -46,8 +46,9 @@ def ordered(obj): if len(gold_standard_json['distributions']) > 0: if 'access' in gold_standard_json['distributions'][0]: if 'accessURL' in gold_standard_json['distributions'][0]['access']: - results_json['distributions'][0].pop('access', None) - gold_standard_json['distributions'][0].pop('access', None) + if 'zenodo' in gold_standard_json['distributions'][0]['access']['accessURL']: + results_json['distributions'][0].pop('access', None) + gold_standard_json['distributions'][0].pop('access', None) if ordered(gold_standard_json) == ordered(results_json): correct += 1