Skip to content

Commit 0505240

Browse files
committed
Fix arg order
1 parent 4f5d3e9 commit 0505240

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

caltechdata_api/get_metadata.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def get_metadata(idv,production=True,auth=None,emails=False):
1111
else:
1212
api_url = "https://cd-sandbox.tind.io/api/record/"
1313

14-
r = requests.get(api_url+str(idv),auth=auth)
14+
r = requests.get(api_url+str(idv))#,auth=auth)
1515
r_data = r.json()
1616
if 'message' in r_data:
1717
raise AssertionError('id '+str(idv)+' expected http status 200, got '\
@@ -56,7 +56,7 @@ def get_metadata(idv,production=True,auth=None,emails=False):
5656
auth = (args.auth_user,args.auth_pass)
5757

5858
for idv in args.ids:
59-
metadata = get_metadata(idv,emails,production,auth)
59+
metadata = get_metadata(idv,production,auth,emails)
6060
outfile = open(str(idv)+'.json','w')
6161
outfile.write(json.dumps(metadata))
6262
outfile.close()

0 commit comments

Comments
 (0)