Skip to content

Commit

Permalink
FIX: custom_query_search
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Park authored and leoppark94 committed Dec 4, 2024
1 parent 5d057dd commit 43a0a77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def custom_query_search(json_path):
url = f"{options.search_db_url}/{options.index_name}\
/_search?request_cache=false"

if os.path.isfile(json_path):
if not os.path.isfile(json_path):
logging.error("Cannot find JSON file")
return None

Expand Down

0 comments on commit 43a0a77

Please sign in to comment.