diff options
| -rw-r--r-- | scraper/util.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scraper/util.py b/scraper/util.py index ad7b1f4d..e1cd61ef 100644 --- a/scraper/util.py +++ b/scraper/util.py @@ -347,13 +347,13 @@ def load_institutions(paperId, paper_location_lookup={}): if paperId in paper_location_lookup: items = paper_location_lookup[paperId] result = [] - if items['validate_1'] == 'TRUE': + if items['validate_1'] is True or items['validate_1'] == 'TRUE': result.append(['', items['institution_1'], '', '']) - if items['validate_2'] == 'TRUE': + if items['validate_2'] is True or items['validate_2'] == 'TRUE': result.append(['', items['institution_2'], '', '']) - if items['validate_3'] == 'TRUE': + if items['validate_3'] is True or items['validate_3'] == 'TRUE': result.append(['', items['institution_3'], '', '']) - if items['validate_4'] == 'TRUE': + if items['validate_4'] is True or items['validate_4'] == 'TRUE': result.append(['', items['institution_4'], '', '']) # if items['validate_5'] == 'TRUE': # result.append(['', items['institution_5'], '', '']) |
