From e7c3b529a3d88400f893bdfd564b3c78ff6c378f Mon Sep 17 00:00:00 2001 From: Michael Graf Date: Sun, 9 Jul 2023 16:31:19 +0200 Subject: [PATCH] ci: fix prefill script --- testing/prefill.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/testing/prefill.py b/testing/prefill.py index ff4a6fd..055117e 100755 --- a/testing/prefill.py +++ b/testing/prefill.py @@ -99,17 +99,22 @@ def prefill(): covid_generator, name="covid", depends_on="base", reference_field="subject" ) - dataset = dataset_generator.generate() + dataset_1 = dataset_generator.generate() - print(f"generated dataset: {dataset}") + print(f"generated dataset: {dataset_1}") # upload dataset to server 1 print(f"uploading dataset to server 1 ({server_1.api_address})...") - dataset.upload(server_1) + dataset_1.upload(server_1) # upload to server 2 - print(f"uploading dataset to server 2 ({server_2.api_address})...") - dataset.upload(server_2) + dataset_2 = dataset_generator.generate() + + print(f"generated dataset: {dataset_2}") + + # upload dataset to server 1 + print(f"uploading dataset to server 1 ({server_1.api_address})...") + dataset_2.upload(server_1) # patients = PatientGenerator(n=count).generate() # print(f"generated {len(patients)} patients")