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:
Beto Dealmeida
2020-12-15 18:47:40 -08:00
committed by GitHub
parent 8da1900d8a
commit 8bda6b0bd9
11 changed files with 108 additions and 13 deletions

View File

@@ -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)