Skip to content
Snippets Groups Projects
Commit 47a2508f authored by pka065's avatar pka065
Browse files

Fix style

parent 0d6aa2f1
No related branches found
No related tags found
1 merge request!357Add legacy_stedkode for OU with a filter correction option specific for UiB
Pipeline #163728 passed
......@@ -72,9 +72,11 @@ class OrgregImporter:
matching_ids = [
x
for x in ou.external_keys
#if ((x.source_system == extra_id["source"] and x.type == extra_id["type"])
#or (x.type == "legacy_stedkode" and settings.INSTITUTION == "uib"))
if ((not extra_id["source"] and not x.source_system) or x.source_system == extra_id["source"]) and x.type == extra_id["type"]
if (
(not extra_id["source"] and not x.source_system)
or x.source_system == extra_id["source"]
)
and x.type == extra_id["type"]
]
if not matching_ids:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment