Skip to content

Conversation

@Rafalkufel
Copy link
Contributor

closes #145

Copy link
Member

@w1stler w1stler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some minor comments probably.

year = 2000 + year_part if month_part > 20 else 1900 + year_part
month = month_part - 20 if month_part > 20 else month_part
self.birth_date = date(year, month, day)
self.birth_date = pesel_to_date_of_birth(pesel)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to check validity of PESEL before extracting date out of it? At this point the data would be correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have here already validated pesel (either form form, or db). No need to validate it every time.

@Rafalkufel Rafalkufel requested a review from w1stler October 11, 2025 14:42
@Rafalkufel Rafalkufel merged commit 810a171 into CodeForPoznan:develop Nov 2, 2025
1 check passed
@github-project-automation github-project-automation bot moved this to Done in Alinka Nov 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Walidacja dla PESELu błędnie akceptuje PESELe dla nieistniejących miesięcy

2 participants