From 2d5c72ce37a7a59ca8b279fc240fc424f3e75a3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anne=20L=27H=C3=B4te?= Date: Tue, 20 Feb 2024 17:57:01 +0100 Subject: [PATCH] fix(data): Remove deprecated field "has_results_or_publications_within_2y" --- bsoclinicaltrials/server/main/enrich_ct.py | 2 -- 1 file changed, 2 deletions(-) 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