Skip to content

Commit

Permalink
Merge pull request #22 from IT-CEREBRUM/dfo-quickfix
Browse files Browse the repository at this point in the history
Ignore assignment-id 99999999 in dfo-import
  • Loading branch information
fredrikhl authored and GitHub Enterprise committed Jan 3, 2023
2 parents 6a38ceb + e29d6c7 commit 6601ad2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cerebrum/modules/no/dfo/datasource.py
Original file line number Diff line number Diff line change
Expand Up @@ -442,6 +442,10 @@ def get_object(self, reference):
return {'id': normalize_id(employee_id)}

assignment_ids = set(get_assignment_ids(employee))

# TODO: Temporary hack - exclude assignment 99999999
assignment_ids.discard(99999999)

assignments = employee['assignments'] = {}
for assignment_id in assignment_ids:
assignment = self._get_assignment(employee_id, assignment_id)
Expand Down

0 comments on commit 6601ad2

Please sign in to comment.