home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1260357583

This data as json

html_url issue_url id node_id user created_at updated_at author_association body reactions issue performed_via_github_app
https://github.com/simonw/datasette/issues/1826#issuecomment-1260357583 https://api.github.com/repos/simonw/datasette/issues/1826 1260357583 IC_kwDOBm6k_c5LH4fP 9599 2022-09-28T04:05:16Z 2022-09-28T04:05:16Z OWNER

This is deliberate. The Datasette plugin system allows you to specify only a subset of the parameters for a hook - in this example, only the value is needed so the others can be omitted.

There's a note about this at the very top of that documentation page: https://docs.datasette.io/en/stable/plugin_hooks.html#plugin-hooks

When you implement a plugin hook you can accept any or all of the parameters that are documented as being passed to that hook.

For example, you can implement the render_cell plugin hook like this even though the full documented hook signature is render_cell(value, column, table, database, datasette): python @hookimpl def render_cell(value, column): if column == "stars": return "*" * int(value)

{
    "total_count": 0,
    "+1": 0,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
1388631785  
Powered by Datasette · Queries took 1.177ms · About: github-to-sqlite