Skip to content

Code Z118 (Jugoslavia) not recognised, in general file countries.json don't manage deleted countries #36

@giobber

Description

@giobber

Python version
3.10

Package version
I'm installing main branch with pip

Current behavior (bug description)
A Fiscal Code with birthplace code set as Z118 (code for ex-country Jugoslavia) are marked as invalid when using codicefiscale.is_valid() function. When I open up the countries.json file I cannot find that code inside but I notice that all codes have as date_created value "01/01/1900 00:00:00" and date_deleted ""
I don't know if this is the desired behaviour, but I think there is no management of deleted foreign country.
In my code I've added an exception for that code (It's only one person in a database) but I want to inform about this behaviour

Expected behavior
CF with code Z118 should be recognised as a Foreign Person born in a deleted country

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions