From 586783eefe1127e203e94929f7c3ec8272ec69fa Mon Sep 17 00:00:00 2001 From: thomashacker Date: Mon, 13 Nov 2023 11:26:41 +0100 Subject: [PATCH] dont set suggestions in production --- goldenverba/verba_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/goldenverba/verba_manager.py b/goldenverba/verba_manager.py index 0fd41228c..dcfbadede 100644 --- a/goldenverba/verba_manager.py +++ b/goldenverba/verba_manager.py @@ -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",