From 0c8dc6f77b1b53934d51161e6f9c66f9790660e0 Mon Sep 17 00:00:00 2001 From: SDE Date: Mon, 7 Aug 2023 23:50:43 +0300 Subject: [PATCH] 0.1.43 not parse airports wo city --- ReferenceDataApp/funcs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ReferenceDataApp/funcs.py b/ReferenceDataApp/funcs.py index 49e8c0e..7ec7679 100644 --- a/ReferenceDataApp/funcs.py +++ b/ReferenceDataApp/funcs.py @@ -58,7 +58,7 @@ def create_airports_by_airportsList(airportsList, city=None): kwargs.update({'iata_code': airport_Dict['iata']}) airport = Airport.objects.get(**kwargs) except Airport.DoesNotExist: - print(f'{airport_Dict["int_name"]} не найден в БД > добавляем') + print(f' - - {airport_Dict["int_name"]} не найден в БД > добавляем') except Exception as e: print(f'error = {str(e)}') @@ -184,7 +184,7 @@ def parse_data(): try: city = City.objects.get(**kwargs) except City.DoesNotExist: - print(f'{city_Dict["name:en"]} не найдена в БД > добавляем') + print(f' - {city_Dict["name:en"]} не найдена в БД > добавляем') except Exception as e: print(f'error = {str(e)}')