Skip to content

Commit

Permalink
Don't clear Condition and ConditionGroup on reload_all
Browse files Browse the repository at this point in the history
The `studyfinder:ctgov:reload_all` task is meant to throw away all
studies and reload all history from clinicaltrials.gov. Since
Condition/Group mappings are completely standalone, this operation also
throws away any time-consuming manual entry that has been done. This
data is completely separate from study data, so it seems better to have
it remain even when studies are fully reloaded from source.
  • Loading branch information
cdinger committed Feb 12, 2020
1 parent 7c56610 commit f4fe4b8
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/connectors/ctgov.rb
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ def clear
StudyFinder::TrialLocation.delete_all
StudyFinder::TrialKeyword.delete_all
StudyFinder::Location.delete_all
StudyFinder::Condition.delete_all
StudyFinder::ConditionGroup.delete_all
StudyFinder::Trial.delete_all
StudyFinder::TrialCondition.delete_all
end
Expand Down

0 comments on commit f4fe4b8

Please sign in to comment.