home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 708669178

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/1020#issuecomment-708669178 https://api.github.com/repos/simonw/datasette/issues/1020 708669178 MDEyOklzc3VlQ29tbWVudDcwODY2OTE3OA== 9599 2020-10-14T21:26:37Z 2020-10-14T21:26:37Z OWNER

One option: add an optional request=... parameter which can be passed the current request, and will use that to populate the mock request with the exception of the bits that are passed explicitly (like the path):

python response = await datasette.client.get("/db/table.json", request=request)

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