mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
51d7881140
commit
7e983fede6
5 changed files with 86 additions and 13 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue