From 5231ee54553ade93621cf89f3bab31ea0443f18c Mon Sep 17 00:00:00 2001 From: minhhoang1023 <40023817+minhhoang1023@users.noreply.github.com> Date: Mon, 23 May 2022 16:43:05 +0100 Subject: [PATCH] Support command redirects to OpenBB Support page (#1846) --- openbb_terminal/helper_funcs.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/openbb_terminal/helper_funcs.py b/openbb_terminal/helper_funcs.py index ab5475566f8..9be8616ea2f 100644 --- a/openbb_terminal/helper_funcs.py +++ b/openbb_terminal/helper_funcs.py @@ -1367,15 +1367,14 @@ def handle_error_code(requests_obj, error_code_map): def prefill_form(ticket_type, menu, path, command, message): """Pre-fille Google Form and open it in the browser""" - form_id = "1FAIpQLSe0-HKitlJMtTO9C2VR7uXVtTzmQgiyE1plf3nEkYCRx6WGRg" - form_url = f"https://docs.google.com/forms/d/e/{form_id}/viewform?" + form_url = "https://openbb.co/support?" params = { - "entry.2091304642": ticket_type, - "entry.2098699567": menu, - "entry.1862722780": path, - "entry.1248966702": command, - "entry.110036167": message, + "type": ticket_type, + "menu": menu, + "path": path, + "command": command, + "message": message, } url_params = urllib.parse.urlencode(params)