find routes
This commit is contained in:
SDE
2023-08-29 18:47:35 +03:00
parent e206e7e64f
commit 252ca6f494

View File

@@ -42,9 +42,14 @@ def get_routes_Dict(user=None, data=None):
kwargs.update({f'{key}__gte': int(weight_list[0])})
if weight_list[1]:
kwargs.update({f'{key}__lte': int(weight_list[1])})
if key == 'type_transport':
items_list = val.split(',')
kwargs.update({f'{key}__in': items_list})
if key not in (
'from_address_point_txt', 'to_address_point_txt', 'csrfmiddlewaretoken', 'sort', 'weight',
'from_el', 'to_el', 'from_address_point', 'to_address_point'
'from_el', 'to_el', 'from_address_point', 'to_address_point', 'type_transport'
):
kwargs.update({key: val})