diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 624b6ff..0fdc2a1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -96,6 +96,8 @@ jobs: python -m pip install --upgrade pip - name: Run Quality Control Script + env: + TEASE: ${{ secrets.TEASE }} run: | sub=${{ needs.process_raw.outputs.sub }} task=${{ needs.process_raw.outputs.task }} diff --git a/jatosAPI.py b/jatosAPI.py index 5aec800..3556564 100644 --- a/jatosAPI.py +++ b/jatosAPI.py @@ -12,9 +12,11 @@ def get_met(): + tease = os.envron['TEASE'] + proxies = { - 'http': 'http://proxy.divms.uiowa.edu:8888', - 'https': 'https://proxy.divms.uiowa.edu:8888', + 'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888', + 'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888', } @@ -61,12 +63,14 @@ def get_met(): return study_result_ids def get_data(study_result_ids): + tease = os.envron['TEASE'] proxies = { - 'http': 'http://proxy.divms.uiowa.edu:8888', - 'https': 'https://proxy.divms.uiowa.edu:8888', + 'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888', + 'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888', } + headers = { 'accept': 'application/octet-stream', 'Authorization': 'Bearer jap_5ThOJ14yf7z1EPEUpAoZYMWoETZcmJk305719',