Work on LIKE part of query
This commit is contained in:
@@ -243,6 +243,9 @@ async def get_obj_li(
|
||||
# This should be a dict list of fields with a list of values to search for using AND.
|
||||
and_qry_dict_obj = None
|
||||
|
||||
# This should be a dict list of fields with a list of values to search for using AND LIKE.
|
||||
and_like_dict_obj = None
|
||||
|
||||
# This should be a dict list of fields with a list of values to search for using AND IN.
|
||||
and_in_dict_li_obj = None
|
||||
|
||||
@@ -264,6 +267,9 @@ async def get_obj_li(
|
||||
if jp_obj.get('and_qry'): # NOTE: This is for the additional AND clauses in the WHERE statement
|
||||
and_qry_dict_obj = jp_obj['and_qry']
|
||||
|
||||
if jp_obj.get('and_like'): # NOTE: This is for the additional AND LIKE clauses in the WHERE statement
|
||||
and_like_dict_obj = jp_obj['and_like']
|
||||
|
||||
if jp_obj.get('and_in_li'): # NOTE: This is for the additional AND IN clauses in the WHERE statement
|
||||
and_in_dict_li_obj = jp_obj['and_in_li']
|
||||
|
||||
@@ -355,6 +361,7 @@ async def get_obj_li(
|
||||
hidden = hidden,
|
||||
fulltext_qry_dict = fulltext_qry_dict_obj,
|
||||
and_qry_dict = and_qry_dict_obj,
|
||||
and_like_dict = and_like_dict_obj,
|
||||
and_in_dict_li = and_in_dict_li_obj,
|
||||
# fulltext_qry_field_li = fulltext_qry_field_li,
|
||||
# fulltext_qry_str = fulltext_qry_str,
|
||||
@@ -373,6 +380,7 @@ async def get_obj_li(
|
||||
hidden = hidden,
|
||||
fulltext_qry_dict = fulltext_qry_dict_obj,
|
||||
and_qry_dict = and_qry_dict_obj,
|
||||
and_like_dict = and_like_dict_obj,
|
||||
and_in_dict_li = and_in_dict_li_obj,
|
||||
# fulltext_qry_field_li = fulltext_qry_field_li,
|
||||
# fulltext_qry_str = fulltext_qry_str,
|
||||
|
||||
Reference in New Issue
Block a user