Skip to content

Commit

Permalink
added ignore cache parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
rishsriv committed Apr 15, 2024
1 parent 1f70d95 commit 3517a60
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions defog/query_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def get_query(
debug: bool = False,
dev: bool = False,
profile: bool = False,
ignore_cache: bool = False,
):
"""
Sends the query to the defog servers, and return the response.
Expand All @@ -30,6 +31,7 @@ def get_query(
"language": language,
"hard_filters": hard_filters,
"dev": dev,
"ignore_cache": ignore_cache,
}
if schema != {}:
data["schema"] = schema
Expand Down Expand Up @@ -82,6 +84,7 @@ def run_query(
retries: int = 3,
dev: bool = False,
profile: bool = False,
ignore_cache: bool = False,
):
"""
Sends the question to the defog servers, executes the generated SQL,
Expand All @@ -100,6 +103,7 @@ def run_query(
language=language,
dev=dev,
profile=profile,
ignore_cache=ignore_cache,
)
if query["ran_successfully"]:
try:
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def package_files(directory):
name="defog",
packages=find_packages(),
package_data={"defog": ["gcp/*", "aws/*"] + next_static_files},
version="0.63.8",
version="0.64.0",
description="Defog is a Python library that helps you generate data queries from natural language questions.",
author="Full Stack Data Pte. Ltd.",
license="MIT",
Expand Down

0 comments on commit 3517a60

Please sign in to comment.