Skip to content

Commit

Permalink
FF-435 #comment added lab award user details to connection
Browse files Browse the repository at this point in the history
  • Loading branch information
KorayKirli committed Dec 7, 2016
1 parent 6f6905c commit 648a549
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions wranglertools/fdnDCIC.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,14 @@ def __init__(self, key):
self.check = False
if r.status_code == 307:
self.check = True
res = r.json()
self.user = res['@id']
self.lab = res['lab']
lab_url = self.server + self.lab
r_lab = requests.get(lab_url, auth=self.auth)
res_lab = r_lab.json()
print(res_lab)
self.award = res_lab['awards'][0]['@id']


class FDN_Schema(object):
Expand Down

0 comments on commit 648a549

Please sign in to comment.