From b83d30bbe09c91c949b0c92510c85917f4afd13c Mon Sep 17 00:00:00 2001 From: Nicolas Turro Date: Wed, 18 Apr 2012 13:59:40 +0200 Subject: [PATCH] Verify user also work with an urn now (worked only with hrn before). NT --- sfa/senslab/slabslices.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sfa/senslab/slabslices.py b/sfa/senslab/slabslices.py index d372eea2..40faae33 100644 --- a/sfa/senslab/slabslices.py +++ b/sfa/senslab/slabslices.py @@ -411,6 +411,10 @@ class SlabSlices: users_dict = {} for user in users: + + if 'urn' in user and (not 'hrn' in user ) : + user['hrn'],user['type'] = urn_to_hrn(user['urn']) + if 'person_id' in user and 'hrn' in user: users_by_id[user['person_id']] = user users_dict[user['person_id']] = {'person_id':user['person_id'], 'hrn':user['hrn']} -- 2.43.0