diff --git a/bsoclinicaltrials/server/main/enrich_ct.py b/bsoclinicaltrials/server/main/enrich_ct.py index b723d95..c42df87 100644 --- a/bsoclinicaltrials/server/main/enrich_ct.py +++ b/bsoclinicaltrials/server/main/enrich_ct.py @@ -32,7 +32,6 @@ def enrich(all_ct): dois_info_dict[doi] = info for p in res: has_publication_oa = None - p['has_results_or_publications_within_2y'] = False p['has_results_or_publications_within_3y'] = False publication_access = [] publications_date = [] @@ -70,7 +69,6 @@ def enrich(all_ct): str): p['delay_first_results_completion'] = (pd.to_datetime(p['first_results_or_publication_date']) - pd.to_datetime( p['study_completion_date'])).days - p['has_results_or_publications_within_2y'] = (p['delay_first_results_completion'] <= 365 * 2) p['has_results_or_publications_within_3y'] = (p['delay_first_results_completion'] <= 365 * 3) p['has_publication_oa'] = has_publication_oa p['publication_access'] = publication_access