From f5041a6813ffc989a87cb473c1b9e630d36b38df Mon Sep 17 00:00:00 2001 From: BenyaminZojaji Date: Sat, 25 May 2024 13:27:36 +0330 Subject: [PATCH] fix lang attr --- Iran_cities_info/Iran_cities_info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Iran_cities_info/Iran_cities_info.py b/Iran_cities_info/Iran_cities_info.py index d0d96ed..30ebd17 100644 --- a/Iran_cities_info/Iran_cities_info.py +++ b/Iran_cities_info/Iran_cities_info.py @@ -10,7 +10,7 @@ def get_completeData(lang: str='en'): lang = en | fa ''' absPath = pathlib.Path(__file__).parent.resolve() - file_path = os.path.join(f'{absPath}', 'assets', 'iran_cities_en.json') + file_path = os.path.join(f'{absPath}', 'assets', f'iran_cities_{lang}.json') with open(file_path) as f: return json.load(f)