expertanalytics / cvcreator

An automated tool for creating CVs on the fly.
6 stars 0 forks source link

Norwegian CVs have to use list of countries in English #114

Closed aless80 closed 4 weeks ago

aless80 commented 4 weeks ago

Because cvcreate does validation using a list of countries, a user has to mix Norwegian with English Mastergrad innen Fysikk fra Padova Universitetet, Italy. instead of Italia.

The error show the following, which is thrown by the package pycountry:

`$ cv create ./AlessandroMarin_AI_Bymiljo.toml out.pdf -p : --norwegian Traceback (most recent call last): File "/home/amarin/xal/cvcreator/venv2/bin/cv", line 8, in sys.exit(cv()) File "/home/amarin/xal/cvcreator/venv2/lib/python3.10/site-packages/click/core.py", line 1157, in call return self.main(args, kwargs) File "/home/amarin/xal/cvcreator/venv2/lib/python3.10/site-packages/click/core.py", line 1078, in main rv = self.invoke(ctx) File "/home/amarin/xal/cvcreator/venv2/lib/python3.10/site-packages/click/core.py", line 1688, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/home/amarin/xal/cvcreator/venv2/lib/python3.10/site-packages/click/core.py", line 1434, in invoke return ctx.invoke(self.callback, ctx.params) File "/home/amarin/xal/cvcreator/venv2/lib/python3.10/site-packages/click/core.py", line 783, in invoke return __callback(args, kwargs) File "/home/amarin/xal/cvcreator/cvcreator/parser.py", line 64, in create content = load_vitae(toml_content, badges=badges, norwegian=norwegian, File "/home/amarin/xal/cvcreator/cvcreator/vitae/content.py", line 67, in load_vitae content = NorwegianVitaeContent(toml.load(src)) File "pydantic/main.py", line 341, in pydantic.main.BaseModel.init pydantic.error_wrappers.ValidationError: 2 validation errors for NorwegianVitaeContent education -> 0 -> country unexpected value; permitted: 'Aruba', 'Afghanistan'...

aless80 commented 4 weeks ago

See #115