Center-for-Research-Libraries / crl-serials-validator

Validate bibliographic and holdings data for shared print.
GNU General Public License v3.0
0 stars 1 forks source link

Make title_dict immutable to prevent errors #44

Closed nflorin closed 2 years ago

nflorin commented 2 years ago

Now the title_dict (which stores all relevant information about each title in a given set) is highly mutable, which can lead to it being erroneously changed at any stage in the process. Make it into an immutable dict (a custom class) and define the keys early in the process, which will guard against typos and other errors, and also make it easier to understand the entire structure.

nflorin commented 2 years ago

Basic immutable title dict done in upcoming issn_warnings branch.