You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fromredash_toolbelt.examples.refresh_queryimportget_fresh_query_resultHOST="<your Redash url>"KEY="<your api key>"ID="<your query id>"# My test query uses a query-based dropdown parameter named `foo`# The underlying query returns integers 1 - 5. These are acceptable parameter values.# The following call succeedsresult=get_fresh_query_result(
redash_url=HOST,
query_id=ID,
api_key=KEY,
params={"foo": 1},
)
# But this fails...result=get_fresh_query_result(
redash_url=HOST,
query_id=ID,
api_key=KEY,
params={"foo": 6},
)
# Because 6 is not an allowed value for `foo`
I have a query but one of parameters is type "query based dropdown list". I do not know the format of json for this parameter.
Please help me!!!
Here is the example I've followed: https://github.com/getredash/redash-toolbelt/blob/master/redash_toolbelt/examples/refresh_query.py
The text was updated successfully, but these errors were encountered: