Skip to content

Commit

Permalink
dont set suggestions in production
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashacker committed Nov 13, 2023
1 parent 8c65c86 commit 586783e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions goldenverba/verba_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,10 @@ def set_suggestions(self, query: str):
"""Adds suggestions to the suggestion class
@parameter query : str - Query to save in suggestions
"""
# Don't set new suggestions when in production
production_key = os.environ.get("VERBA_PRODUCTION", "")
if production_key == "True":
return
check_results = (
self.client.query.get(
class_name="Suggestion",
Expand Down

0 comments on commit 586783e

Please sign in to comment.