home / github

Menu
  • GraphQL API

github

Custom SQL query returning 3 rows (hide)

Query parameters

This data as json, CSV

html_urlissue_urlidnode_idusercreated_atupdated_atauthor_associationbodyreactionsissueperformed_via_github_app
https://github.com/simonw/datasette/issues/1667#issuecomment-1073040072 https://api.github.com/repos/simonw/datasette/issues/1667 1073040072 IC_kwDOBm6k_c4_9UrI 9599 2022-03-19T16:34:02Z 2022-03-19T16:34:02Z OWNER I called it `as_format` to avoid clashing with the Python built-in `format()` function when these things were turned into keyword arguments, but now that they're not I can use `format` instead. I think I'm going to go with `database`, `table`, `format` and `pks`. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1174302994  
https://github.com/simonw/datasette/issues/1667#issuecomment-1073042554 https://api.github.com/repos/simonw/datasette/issues/1667 1073042554 IC_kwDOBm6k_c4_9VR6 9599 2022-03-19T16:50:01Z 2022-03-19T16:52:35Z OWNER OK, I've made this more consistent - I still need to address the fact that `format` can be `.json` or `json` or not used at all before I close this issue. https://github.com/simonw/datasette/blob/61419388c134001118aaf7dfb913562d467d7913/tests/test_routes.py#L15-L35 {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1174302994  
https://github.com/simonw/datasette/issues/1667#issuecomment-1073076624 https://api.github.com/repos/simonw/datasette/issues/1667 1073076624 IC_kwDOBm6k_c4_9dmQ 9599 2022-03-19T20:31:44Z 2022-03-19T20:31:44Z OWNER I can now read `format` from `request.url_vars` and delete this code entirely: https://github.com/simonw/datasette/blob/b9c2b1cfc8692b9700416db98721fa3ec982f6be/datasette/views/base.py#L375-L381 {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1174302994  
Powered by Datasette · Queries took 1.207ms · About: simonw/datasette-graphql