home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 1196167102

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/1773#issuecomment-1196167102 https://api.github.com/repos/simonw/datasette/issues/1773 1196167102 IC_kwDOBm6k_c5HTA-- 9599 2022-07-27T01:28:02Z 2022-07-27T01:28:02Z OWNER So code would look something like this: ```python try: prefix = rows[-2][sort or sort_desc] except KeyError: # Didn't select sort/sort_desc column - look up value by primary key instead primary_key = rows[-2]["pk"] # But more complex than this prefix = (await db.execute("select * from {table} where pk = ?", [primary_key])).first_value() ``` {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 1318907685  
Powered by Datasette · Queries took 0.919ms