ctti-clinicaltrials / aact

Improving Public Access to Aggregate Content of ClinicalTrials.gov
http://aact.ctti-clinicaltrials.org
MIT License
124 stars 33 forks source link

Kostik/crete worker downloading studies/aact 575 #1097

Closed kostik700015 closed 8 months ago

kostik700015 commented 9 months ago

That PR adds a worker for downloading a list of studies from clinicaltrials.gov using apiV2. Also that PR contains migration, that adds the attribute "version" to StudyJsonRecord, by default, it is "1". Run rails db:migrate before testing. To test it run in rails console commands like this one: StudyDownloader.download(['NCT02071602', 'NCT00430612', 'NCT00785954', 'NCT00103350', 'NCT03445728', 'NCT03649711'])

Javier-Jimenez-18 commented 9 months ago

Provide a screenshot when you run in rails console commands like this one: StudyDownloader.download(['NCT02071602', 'NCT00430612', 'NCT00785954', 'NCT00103350', 'NCT03445728', 'NCT03649711'])