More inclusive language

This commit is contained in:
Simon Willison 2021-06-02 21:45:03 -07:00
commit 6e9b07be92
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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