-
-
Notifications
You must be signed in to change notification settings - Fork 25
Code Z118 (Jugoslavia) not recognised, in general file countries.json don't manage deleted countries #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@giobber countries data is automatically updated every week from this data source: If there are some missing countries the only thing that could be done is to post-process the data adding some entries at the end of the update workflow. I'm sure that there are many other cases like this one, do you have a better data-source that could be used for retrieving more accurate countries info? |
I've searched for my case on google and i found the history of code for Serbia in this site The site of Agenzia delle Entrate seem to be the right source, but the only page I found instead of data, contains a download for a Istat at this link contains interesting links...but today are not working (yesterday from phone worked, so maybe is a temporary issue) Searching the first site I found a section where they explain various issues the had in fixing foreign countries data taken from Agenzia delle Entrate. At this link they explain everithing and there is a download link for data in xls format |
@giobber I finally had some time for checking the data sources you linked:
Nice info, but not so useful for automating data updates.
Good resource, especially this file, checking the data there is a problem: there is not the precise date (only the year) when the country has been "removed". Frankly I would use the Istat data-source, but it's incomplete. :(
Here there are certainly more detailed info, but if you check for "Iugoslavia" there are six rows with different dates (one row for each new country), it's a little bit confusing and I don't want to depend on a site that is not an official institution. |
missing also Z135 http://www.elesh.it/storiastati/storia_stato.asp?codcat=Z135 |
@WaYdotNET thanks for reporting it. |
@giobber @WaYdotNET you can upgrade to |
Thx @fabiocaccamo |
Python version
3.10
Package version
I'm installing
main
branch withpip
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 asdate_created
value "01/01/1900 00:00:00" anddate_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
The text was updated successfully, but these errors were encountered: