mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Rename ?_nofacets=1 to ?_nofacet=1, refs #1353
This commit is contained in:
parent
d1d06ace49
commit
8bde6c5461
5 changed files with 13 additions and 13 deletions
|
|
@ -264,11 +264,11 @@ class DataView(BaseView):
|
|||
async def as_csv(self, request, database, hash, **kwargs):
|
||||
stream = request.args.get("_stream")
|
||||
# Do not calculate facets:
|
||||
if not request.args.get("_nofacets"):
|
||||
if not request.args.get("_nofacet"):
|
||||
if not request.query_string:
|
||||
new_query_string = "_nofacets=1"
|
||||
new_query_string = "_nofacet=1"
|
||||
else:
|
||||
new_query_string = request.query_string + "&_nofacets=1"
|
||||
new_query_string = request.query_string + "&_nofacet=1"
|
||||
new_scope = dict(
|
||||
request.scope, query_string=new_query_string.encode("latin-1")
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue