From d29d569578e12fb0f28bdc224c11b74d54e8d8b5 Mon Sep 17 00:00:00 2001 From: max/sooulix Date: Thu, 15 Aug 2024 02:20:59 +0200 Subject: [PATCH] =?UTF-8?q?les=20traductions=20sont=20dans=20le=20th=C3=A8?= =?UTF-8?q?me?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jsonresume_reader.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/jsonresume_reader.py b/jsonresume_reader.py index c6e6ffd..c520cb8 100644 --- a/jsonresume_reader.py +++ b/jsonresume_reader.py @@ -25,11 +25,8 @@ class JSONResumeReader(readers.RstReader): content, metadata = super().read(filename) if not('jsonresume' in metadata and os.path.isfile(metadata['jsonresume'])): raise Exception('please give a jsonresume metadata field for this type') - if not(f'jsonresume_{self._language_code}' in metadata and os.path.isfile(metadata[f'jsonresume_{self._language_code}'])): - raise Exception('please give a jsonresume_languagecode metadata field for this type') metadata['resume'] = json.load(open(metadata['jsonresume'])) - metadata['language'] = json.load(open(metadata[f'jsonresume_{self._language_code}'])) metadata['locale'] = self.settings.get('LOCALE', [self.settings.get('DEFAULT_LOCALE', None)]) countryname = lambda code: 'langue'