Skip to content

Commit

Permalink
The logged in user should be shown in the 'Owner' list in Search > Pr…
Browse files Browse the repository at this point in the history
…ovenance
  • Loading branch information
kristallizer committed Aug 4, 2014
1 parent 78a7913 commit f0928a0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ def search():
metamorphic_grade_list.append(mmg['name'])

owner_dict = {}
if email:
logged_in_user = api.user.get(params={'email': email,
'fields': 'user_id,name'}).data['objects']
owner_dict[logged_in_user[0]['user_id']] = logged_in_user[0]['name']

for sample in samples:
collector_list.append(unicode(sample['collector']))
number_list.append(sample['number'])
Expand Down

0 comments on commit f0928a0

Please sign in to comment.