Skip to content

Switch to using datasette.client #28

@simonw

Description

@simonw

datasette.client is designed for this kind of thing, to replace this code:

inner_request = Request.fake(path_with_query_string)
view = TableView(datasette)
data, _, _ = await view.data(
inner_request,
database=database_name,
hash=None,
table="search_index",
_next=None,
)
count, facets = data["filtered_table_rows_count"], data["facet_results"]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions