mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
More inclusive language
This commit is contained in:
parent
f78ebdc045
commit
6e9b07be92
3 changed files with 3 additions and 3 deletions
|
|
@ -540,7 +540,7 @@ def serve(
|
||||||
# Run the "startup" plugin hooks
|
# Run the "startup" plugin hooks
|
||||||
asyncio.get_event_loop().run_until_complete(ds.invoke_startup())
|
asyncio.get_event_loop().run_until_complete(ds.invoke_startup())
|
||||||
|
|
||||||
# Run async sanity checks - but only if we're not under pytest
|
# Run async soundness checks - but only if we're not under pytest
|
||||||
asyncio.get_event_loop().run_until_complete(check_databases(ds))
|
asyncio.get_event_loop().run_until_complete(check_databases(ds))
|
||||||
|
|
||||||
if get:
|
if get:
|
||||||
|
|
|
||||||
|
|
@ -304,7 +304,7 @@ class ArrayFacet(Facet):
|
||||||
)
|
)
|
||||||
types = tuple(r[0] for r in results.rows)
|
types = tuple(r[0] for r in results.rows)
|
||||||
if types in (("array",), ("array", None)):
|
if types in (("array",), ("array", None)):
|
||||||
# Now sanity check that first 100 arrays contain only strings
|
# Now check that first 100 arrays contain only strings
|
||||||
first_100 = [
|
first_100 = [
|
||||||
v[0]
|
v[0]
|
||||||
for v in await self.ds.execute(
|
for v in await self.ds.execute(
|
||||||
|
|
|
||||||
|
|
@ -281,7 +281,7 @@ class DataView(BaseView):
|
||||||
)
|
)
|
||||||
request.scope = new_scope
|
request.scope = new_scope
|
||||||
if stream:
|
if stream:
|
||||||
# Some quick sanity checks
|
# Some quick soundness checks
|
||||||
if not self.ds.setting("allow_csv_stream"):
|
if not self.ds.setting("allow_csv_stream"):
|
||||||
raise BadRequest("CSV streaming is disabled")
|
raise BadRequest("CSV streaming is disabled")
|
||||||
if request.args.get("_next"):
|
if request.args.get("_next"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue