home / github / issues

Menu
  • Search all tables
  • GraphQL API

issues: 314256802

This data as json

id node_id number title user state locked assignee milestone comments created_at updated_at closed_at author_association pull_request body repo type active_lock_reason performed_via_github_app reactions draft state_reason
314256802 MDExOlB1bGxSZXF1ZXN0MTgxNjAwOTI2 204 Initial units support 45057 closed 0     0 2018-04-13T21:32:49Z 2018-04-14T09:44:33Z 2018-04-14T03:32:54Z CONTRIBUTOR simonw/datasette/pulls/204

Add support for specifying units for a column in metadata.json and rendering them on display using pint.

Example table metadata: json "license_frequency": { "units": { "frequency": "Hz", "channel_width": "Hz", "height": "m", "antenna_height": "m", "azimuth": "degrees" } }

Example result

This works surprisingly well! I'd like to add support for using units when querying but this is PR is pretty usable as-is.

(Pint doesn't seem to support decibels though - it thinks they're decibytes - which is an annoying omission.)

(ref ticket #203)

107914493 pull    
{
    "url": "https://api.github.com/repos/simonw/datasette/issues/204/reactions",
    "total_count": 1,
    "+1": 1,
    "-1": 0,
    "laugh": 0,
    "hooray": 0,
    "confused": 0,
    "heart": 0,
    "rocket": 0,
    "eyes": 0
}
0  

Links from other tables

  • 0 rows from issues_id in issues_labels
  • 0 rows from issue in issue_comments
Powered by Datasette · Queries took 0.968ms · About: github-to-sqlite