researchers should be researcher
authorTony Mack <tmack@cs.princeton.edu>
Thu, 10 Jun 2010 11:56:52 +0000 (11:56 +0000)
committerTony Mack <tmack@cs.princeton.edu>
Thu, 10 Jun 2010 11:56:52 +0000 (11:56 +0000)
sfa/plc/api.py

index f9a3902..a75dd33 100644 (file)
@@ -465,10 +465,10 @@ class SfaAPI(BaseAPI):
             if (type == "slice"):
                 # all slice users are researchers
                 record['PI'] = []
-                record['researchers'] = []
+                record['researcher'] = []
                 for person_id in record['person_ids']:
                     hrns = [person['hrn'] for person in persons[person_id]]
-                    record['researchers'].extend(hrns)                
+                    record['researcher'].extend(hrns)                
 
                 # pis at the slice's site
                 pl_pis = site_pis[record['site_id']]