Skip to content
This repository was archived by the owner on Feb 24, 2025. It is now read-only.

Commit aa8523f

Browse files
committed
added auth to proxy
1 parent 1ea42d2 commit aa8523f

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ jobs:
9696
python -m pip install --upgrade pip
9797
9898
- name: Run Quality Control Script
99+
env:
100+
TEASE: ${{ secrets.TEASE }}
99101
run: |
100102
sub=${{ needs.process_raw.outputs.sub }}
101103
task=${{ needs.process_raw.outputs.task }}

jatosAPI.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@
1111
# jap_5ThOJ14yf7z1EPEUpAoZYMWoETZcmJk305719
1212

1313
def get_met():
14+
tease = os.envron['TEASE']
1415

1516
proxies = {
16-
'http': 'http://proxy.divms.uiowa.edu:8888',
17-
'https': 'https://proxy.divms.uiowa.edu:8888',
17+
'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888',
18+
'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888',
1819
}
1920

2021

22+
2123
url = 'https://jatos.psychology.uiowa.edu/jatos/api/v1/results/metadata'
2224
headers = {
2325
'accept': 'application/json',
@@ -61,10 +63,11 @@ def get_met():
6163
return study_result_ids
6264

6365
def get_data(study_result_ids):
66+
tease = os.envron['TEASE']
6467

6568
proxies = {
66-
'http': 'http://proxy.divms.uiowa.edu:8888',
67-
'https': 'https://proxy.divms.uiowa.edu:8888',
69+
'http': f'http:zjgilliam:{tease}//proxy.divms.uiowa.edu:8888',
70+
'https': f'https://zjgilliam:{tease}proxy.divms.uiowa.edu:8888',
6871
}
6972

7073
headers = {

0 commit comments

Comments
 (0)