home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 1109200335

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/1720#issuecomment-1109200335 https://api.github.com/repos/simonw/datasette/issues/1720 1109200335 IC_kwDOBm6k_c5CHQ3P 9599 2022-04-26T01:24:47Z 2022-04-26T01:24:47Z OWNER Sketching out a `?_extra=statistics` table plugin: ```python from datasette import hookimpl @hookimpl def register_table_extras(datasette): return [statistics] async def statistics(datasette, query, columns, sql): # ... need to figure out which columns are integer/floats # then build and execute a SQL query that calculates sum/avg/etc for each column ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1215174094  
Powered by Datasette · Queries took 1.339ms