Skip to content

Commit

Permalink
added auth to proxy
Browse files Browse the repository at this point in the history
  • Loading branch information
miloswrath committed Sep 17, 2024
1 parent 0fb514b commit 5eed852
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
11 changes: 7 additions & 4 deletions jatosAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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',
}


Expand Down Expand Up @@ -61,10 +63,11 @@ 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 = {
Expand Down

0 comments on commit 5eed852

Please sign in to comment.