home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 1061276399

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/647#issuecomment-1061276399 https://api.github.com/repos/simonw/datasette/issues/647 1061276399 IC_kwDOBm6k_c4_Qcrv 9599 2022-03-08T00:21:47Z 2022-03-08T00:21:47Z OWNER

This seems to do the job: python @hookimpl def startup(datasette): for name, database in datasette.databases.items(): if database.hash: new_name = "{}_{}".format(name, database.hash[:7]) del datasette.databases[name] datasette.databases[new_name] = database Would have to teach the rest of the plugin to split on _ and to only redirect if the user seems to be hitting the URL for an old hash after which Datasette has been restarted with an updated database.

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