mirror of
https://github.com/apache/superset.git
synced 2026-04-19 16:14:52 +00:00
feat: show missing parameters in query (#12049)
* feat: show missing parameters in query * Fix lint * Address comments * Simplify error message * Use f-string in helper function
This commit is contained in:
@@ -1669,3 +1669,8 @@ def get_time_filter_status( # pylint: disable=too-many-branches
|
||||
)
|
||||
|
||||
return applied, rejected
|
||||
|
||||
|
||||
def format_list(items: Sequence[str], sep: str = ", ", quote: str = '"') -> str:
|
||||
quote_escaped = "\\" + quote
|
||||
return sep.join(f"{quote}{x.replace(quote, quote_escaped)}{quote}" for x in items)
|
||||
|
||||
Reference in New Issue
Block a user