0.6.5
find routes
This commit is contained in:
@@ -42,9 +42,14 @@ def get_routes_Dict(user=None, data=None):
|
|||||||
kwargs.update({f'{key}__gte': int(weight_list[0])})
|
kwargs.update({f'{key}__gte': int(weight_list[0])})
|
||||||
if weight_list[1]:
|
if weight_list[1]:
|
||||||
kwargs.update({f'{key}__lte': int(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 (
|
if key not in (
|
||||||
'from_address_point_txt', 'to_address_point_txt', 'csrfmiddlewaretoken', 'sort', 'weight',
|
'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})
|
kwargs.update({key: val})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user