datasette icon indicating copy to clipboard operation
datasette copied to clipboard

How to avoid downloading the CSV file?

Open nicfab opened this issue 5 months ago • 1 comments

I set allow_download off both in setting.jsonamd in metadata.json or metadata.yml as follows:

setting.json

{
    "default_facet_size": 30,
    "default_page_size": 200,
    "facet_suggest_time_limit_ms": 50,
    "facet_time_limit_ms": 1000,
    "max_returned_rows": 1000,
    "sql_time_limit_ms": 1000,
    "truncate_cells_html": 0,
    "allow_download": 0
}

metadata.json

{
    "title": "Some text",
    "description": "Description",
    "license": "ODbL",
    "license_url": "https://opendatacommons.org/licenses/odbl/",
    "source": "Source",
    "source_url": "https://sourceurl",
    "allow_sql": false,
    "allow_download": false
}

The settings allow_sql works.

I aim to avoid downloading both the SQL and CSV files.

nicfab avatar Sep 15 '24 14:09 nicfab