fix get city when parse
This commit is contained in:
SDE
2023-08-08 00:23:04 +03:00
parent 9b7b7d52a4
commit 6d121c8879

View File

@@ -181,6 +181,9 @@ def parse_data():
if city_Dict['name:ru']:
kwargs.update({'name_ru': city_Dict['name:ru']})
if country:
kwargs.update({'country': country})
try:
city = City.objects.get(**kwargs)
except City.DoesNotExist: