mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Always pop as_format off args dict (#603)
Closes #563. Thanks, @chris48s
This commit is contained in:
parent
a5d4f166a5
commit
ca44cc03e3
2 changed files with 11 additions and 0 deletions
|
|
@ -362,6 +362,8 @@ class DataView(BaseView):
|
|||
_format = request.args.get("_format", None)
|
||||
if not _format:
|
||||
_format = (args.pop("as_format", None) or "").lstrip(".")
|
||||
else:
|
||||
args.pop("as_format", None)
|
||||
if "table_and_format" in args:
|
||||
db = self.ds.databases[database]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue