issue_comments
4 rows where author_association = "OWNER", reactions = "{"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}" and "updated_at" is on date 2022-07-07
This data as json, CSV (advanced)
id ▼ | html_url | issue_url | node_id | user | created_at | updated_at | author_association | body | reactions | issue | performed_via_github_app |
---|---|---|---|---|---|---|---|---|---|---|---|
1155815956 | https://github.com/simonw/sqlite-utils/issues/444#issuecomment-1155815956 | https://api.github.com/repos/simonw/sqlite-utils/issues/444 | IC_kwDOCGYnMM5E5FoU | simonw 9599 | 2022-06-14T23:49:56Z | 2022-07-07T16:39:18Z | OWNER | Yeah my initial implementation there makes no sense: ```python csv_reader_args = {"dialect": dialect} if delimiter: csv_reader_args["delimiter"] = delimiter if quotechar: csv_reader_args["quotechar"] = quotechar reader = _extra_key_strategy( csv_std.reader(decoded, **csv_reader_args), ignore_extras, extras_key ) first_row = next(reader) if no_headers: headers = ["untitled_{}".format(i + 1) for i in range(len(first_row))] reader = itertools.chain([first_row], reader) else: headers = first_row docs = (dict(zip(headers, row)) for row in reader) ``` Because my `_extra_key_strategy()` helper function is designed to work against `csv.DictReader` - not against `csv.reader()` which returns a sequence of lists, not a sequence of dictionaries. In fact, what's happening here is that `dict(zip(headers, row))` is ignoring anything in the row that doesn't correspond to a header: ```pycon >>> list(zip(["a", "b"], [1, 2, 3])) [('a', 1), ('b', 2)] ``` | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | CSV `extras_key=` and `ignore_extras=` equivalents for CLI tool 1271426387 | |
1177893425 | https://github.com/simonw/datasette/issues/1300#issuecomment-1177893425 | https://api.github.com/repos/simonw/datasette/issues/1300 | IC_kwDOBm6k_c5GNTox | simonw 9599 | 2022-07-07T16:28:13Z | 2022-07-07T16:28:13Z | OWNER | Adding `row` to this plugin hook is a smart idea. | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | Make row available to `render_cell` plugin hook 860625833 | |
1177901762 | https://github.com/simonw/datasette/issues/1300#issuecomment-1177901762 | https://api.github.com/repos/simonw/datasette/issues/1300 | IC_kwDOBm6k_c5GNVrC | simonw 9599 | 2022-07-07T16:34:05Z | 2022-07-07T16:34:05Z | OWNER | Updated documentation: https://docs.datasette.io/en/latest/plugin_hooks.html#render-cell-row-value-column-table-database-datasette | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | Make row available to `render_cell` plugin hook 860625833 | |
1177966193 | https://github.com/simonw/datasette/issues/1768#issuecomment-1177966193 | https://api.github.com/repos/simonw/datasette/issues/1768 | IC_kwDOBm6k_c5GNlZx | simonw 9599 | 2022-07-07T17:25:22Z | 2022-07-07T17:25:22Z | OWNER | I tried this on Datasette Cloud and swapping `datasetteproject/datasette` to `python:3.10-slim-bullseye` as the base image dropped the overall image size from ~232MB to ~166MB - but note that I don't have SpatiaLite in that second image. | {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} | Upgrade to 3.10.6-slim-bullseye Docker base image 1296222572 |
Advanced export
JSON shape: default, array, newline-delimited, object
CREATE TABLE [issue_comments] ( [html_url] TEXT, [issue_url] TEXT, [id] INTEGER PRIMARY KEY, [node_id] TEXT, [user] INTEGER REFERENCES [users]([id]), [created_at] TEXT, [updated_at] TEXT, [author_association] TEXT, [body] TEXT, [reactions] TEXT, [issue] INTEGER REFERENCES [issues]([id]) , [performed_via_github_app] TEXT); CREATE INDEX [idx_issue_comments_issue] ON [issue_comments] ([issue]); CREATE INDEX [idx_issue_comments_user] ON [issue_comments] ([user]);