issue_comments: 641017721
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/805#issuecomment-641017721 | https://api.github.com/repos/simonw/datasette/issues/805 | 641017721 | MDEyOklzc3VlQ29tbWVudDY0MTAxNzcyMQ== | 9599 | 2020-06-09T04:16:28Z | 2020-06-09T04:16:28Z | OWNER | Create `data.db` with: ``` echo '{"emoji": "🐯", "score": 0}' | sqlite-utils insert data.db emojis --pk=emoji - echo '{"emoji": "🐺", "score": 0}' | sqlite-utils insert data.db emojis --pk=emoji - ``` Then run Datasette with this `metadata.yaml`: ```yaml title: Datasette Poll databases: data: queries: vote: sql: |- update emojis set score = score + 1 where emoji = :emoji write: true ``` | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | 632724154 |