Compare commits

..

3 Commits

1 changed files with 4 additions and 4 deletions

View File

@ -62,7 +62,7 @@ def get_idp_service():
def get_issuer(entity_id):
issuer, created = Issuer.objects.get_or_create(entity_id=entity_id)
issuer, _ = Issuer.objects.get_or_create(entity_id=entity_id)
return issuer
@ -88,9 +88,9 @@ def provision_user(entity_id, o, tries=0):
else:
user_extra_attributes = UserExtraAttributes(user=user, data=extra_attributes)
for key in attributes:
if getattr(user, key) != attributes[key]:
setattr(user, key, attributes[key])
for key, value in attributes.items():
if getattr(user, key) != value:
setattr(user, key, value)
updated.add(key)
for key in extra_attributes: