Skip to content

Commit

Permalink
Importera personer även om personnr inte har 12 siffror. #173
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-green committed Apr 7, 2024
1 parent 440e855 commit 0db6a10
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions dataimport.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ def DoImport(self, data, semester):
personnr = p["personnr"].replace('-', '')
person = Person.getByMemberNo(person_id)
if len(personnr) < 12:
self.result.warning(u"%d %s %s har inte korrekt personnummer: '%s', hoppar över personen" % (person_id, p["firstname"], p["lastname"], personnr))
continue
self.result.warning("%d %s %s har inte korrekt personnummer: '%s'" % (person_id, p["firstname"], p["lastname"], personnr))

if person != None:
person_id = person.key.id()
Expand Down

0 comments on commit 0db6a10

Please sign in to comment.