mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Improved UI for CSV/JSON export, closes #266
This commit is contained in:
parent
fc3660cfad
commit
83f4ef7ec7
7 changed files with 78 additions and 14 deletions
|
|
@ -170,6 +170,13 @@ def validate_sql_select(sql):
|
|||
raise InvalidSql(msg)
|
||||
|
||||
|
||||
def append_querystring(url, querystring):
|
||||
op = "&" if ("?" in url) else "?"
|
||||
return "{}{}{}".format(
|
||||
url, op, querystring
|
||||
)
|
||||
|
||||
|
||||
def path_with_added_args(request, args, path=None):
|
||||
path = path or request.path
|
||||
if isinstance(args, dict):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue