diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 14:31:43 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-30 14:31:43 +0100 |
| commit | cbc0c2ef0862ab45da7c9392d4101332b6dab8e3 (patch) | |
| tree | 1f5f2df81fd0e6e49cc45f16074a70839ab8ae8f | |
| parent | 3819da73b0bbf8604a0ef33cfa7dcf4eac2e8d33 (diff) | |
fun
| -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'], '', '']) |
