From d3f20ca817d32feb559c60b72100923ad4ac3019 Mon Sep 17 00:00:00 2001 From: youainti Date: Thu, 2 Jun 2022 12:20:08 -0700 Subject: [PATCH] Fixed trial reservation issues by adjusting when the reservation querey is written to the db --- history_downloader/downloader.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/history_downloader/downloader.py b/history_downloader/downloader.py index cbe0855..8738e67 100644 --- a/history_downloader/downloader.py +++ b/history_downloader/downloader.py @@ -228,12 +228,12 @@ if __name__ == "__main__": #get list of nct_ids - nctids = reserve_trials(con, 100) + nctids = reserve_trials(con, 10) print(nctids) #start analyzing them - with Pool(processes=4) as process_pool: - process_pool.map(downloader, nctids) + with Pool(processes=4) as process_pool: + process_pool.map(downloader, nctids)