1.6.12 fix next package for my_routes
This commit is contained in:
@@ -118,10 +118,10 @@ def get_city_by_type_transport_and_address_point(type_transport, address_point):
|
||||
from ReferenceDataApp.models import Airport, City
|
||||
|
||||
try:
|
||||
# if type_transport == 'avia':
|
||||
# return Airport.objects.get(id=address_point).city
|
||||
# else:
|
||||
return City.objects.get(id=address_point)
|
||||
if type_transport == 'avia':
|
||||
return Airport.objects.get(id=address_point).city
|
||||
else:
|
||||
return City.objects.get(id=address_point)
|
||||
except Exception as e:
|
||||
msg = f'get_city_by_type_transport_and_address_point Error = {str(e)}, type_transport = {type_transport}, address_point = {address_point}'
|
||||
print(msg)
|
||||
|
||||
Reference in New Issue
Block a user