From 352f26c8c2b9058f6fc3c7149a0156f39490ceec Mon Sep 17 00:00:00 2001 From: zjgilliam Date: Mon, 23 Sep 2024 09:59:17 -0500 Subject: [PATCH] Automated commit -> added return statement to parser in jatosapi --- jatosAPI.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/jatosAPI.py b/jatosAPI.py index 9bcc8f0..3a276a2 100644 --- a/jatosAPI.py +++ b/jatosAPI.py @@ -15,6 +15,7 @@ def parse_cmd(): import argparse parser = argparse.ArgumentParser(description='API File to Pull Subject Data from Jatos') parser.add_argument('-t', type=str, help='TEASE') + parser.add_argument('-a', type=str, help="toke") return parser.parse_args() @@ -242,6 +243,7 @@ def push(toke): def main(): args = parse_cmd() tease = args.t + toke = args.a study_result_ids = get_met(tease) get_data(study_result_ids, tease) convert_beh() @@ -251,8 +253,7 @@ def main(): if file.endswith(".txt"): txt_files.append(os.path.join(root, file)) move_txt(txt_files) - push() - + push(toke)