github
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/503#issuecomment-500145486 | https://api.github.com/repos/simonw/datasette/issues/503 | 500145486 | MDEyOklzc3VlQ29tbWVudDUwMDE0NTQ4Ng== | 9599 | 2019-06-08T17:52:38Z | 2019-06-08T17:52:38Z | OWNER | This should definitely work - hopefully not a big fix. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
453243459 | |
https://github.com/simonw/datasette/issues/506#issuecomment-500173464 | https://api.github.com/repos/simonw/datasette/issues/506 | 500173464 | MDEyOklzc3VlQ29tbWVudDUwMDE3MzQ2NA== | 9599 | 2019-06-08T23:44:59Z | 2019-06-08T23:44:59Z | OWNER | This could also be handled by a plugin. | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
453846217 | |
https://github.com/simonw/datasette/issues/506#issuecomment-500173881 | https://api.github.com/repos/simonw/datasette/issues/506 | 500173881 | MDEyOklzc3VlQ29tbWVudDUwMDE3Mzg4MQ== | 9599 | 2019-06-08T23:55:52Z | 2019-06-08T23:55:52Z | OWNER | Possible plugin direction: ```python import filetype # https://pypi.org/project/filetype/ @hookimpl(trylast=True) def render_cell(value): if isinstance(value, bytes): info = repr(value) # May still want to truncate this on table view (but not on row page) guess = filetype.guess(value) if guess is not None: # Need jinja2 markup here for \n to display info = "Guess: mime={}, extension={}\n\n{}".format( guess.mime, guess.extension, info ) return info return None ``` | { "total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0 } |
453846217 |