mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
parent
4284c74bc1
commit
978249beda
1 changed files with 0 additions and 1 deletions
|
|
@ -484,7 +484,6 @@ async def stream_csv(datasette, fetch_data, request, database):
|
||||||
|
|
||||||
async def stream_fn(r):
|
async def stream_fn(r):
|
||||||
nonlocal data, trace
|
nonlocal data, trace
|
||||||
print("max_csv_mb", datasette.setting("max_csv_mb"))
|
|
||||||
limited_writer = LimitedWriter(r, datasette.setting("max_csv_mb"))
|
limited_writer = LimitedWriter(r, datasette.setting("max_csv_mb"))
|
||||||
if trace:
|
if trace:
|
||||||
await limited_writer.write(preamble)
|
await limited_writer.write(preamble)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue