Skip to content

Commit 43a0a77

Browse files
Leo Parkleoppark94
authored andcommitted
FIX: custom_query_search
1 parent 5d057dd commit 43a0a77

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/requests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ def custom_query_search(json_path):
242242
url = f"{options.search_db_url}/{options.index_name}\
243243
/_search?request_cache=false"
244244

245-
if os.path.isfile(json_path):
245+
if not os.path.isfile(json_path):
246246
logging.error("Cannot find JSON file")
247247
return None
248248

0 commit comments

Comments
 (0)