Skip to content

Commit

Permalink
fix(data): Remove deprecated field "has_results_or_publications_withi…
Browse files Browse the repository at this point in the history
…n_2y"
  • Loading branch information
annelhote committed Feb 20, 2024
1 parent 0923df8 commit 2d5c72c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions bsoclinicaltrials/server/main/enrich_ct.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 2d5c72c

Please sign in to comment.