?_facet_size=max, ... now links to that, closes #1337

Refs #1332
This commit is contained in:
Simon Willison 2021-05-27 09:00:58 -07:00
commit 7e983fede6
5 changed files with 86 additions and 13 deletions

View file

@ -129,16 +129,16 @@ def make_app_client(
files.append(extra_filepath)
os.chdir(os.path.dirname(filepath))
config = config or {}
config.update(
{
"default_page_size": 50,
"max_returned_rows": max_returned_rows or 100,
"sql_time_limit_ms": sql_time_limit_ms or 200,
# Default is 3 but this results in "too many open files"
# errors when running the full test suite:
"num_sql_threads": 1,
}
)
for key, value in {
"default_page_size": 50,
"max_returned_rows": max_returned_rows or 100,
"sql_time_limit_ms": sql_time_limit_ms or 200,
# Default is 3 but this results in "too many open files"
# errors when running the full test suite:
"num_sql_threads": 1,
}.items():
if key not in config:
config[key] = value
ds = Datasette(
files,
immutables=immutables,