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 c5b18f8 commit 9328775
Show file tree
Hide file tree
Showing 2 changed files with 8 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
10 changes: 6 additions & 4 deletions jatosAPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,11 @@
# jap_5ThOJ14yf7z1EPEUpAoZYMWoETZcmJk305719

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',
}

url = 'https://jatos.psychology.uiowa.edu/jatos/api/v1/results/metadata'
Expand Down Expand Up @@ -60,10 +61,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 9328775

Please sign in to comment.