home / github / issue_comments

Menu
  • Search all tables
  • GraphQL API

issue_comments: 718170295

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/sqlite-utils/issues/191#issuecomment-718170295 https://api.github.com/repos/simonw/sqlite-utils/issues/191 718170295 MDEyOklzc3VlQ29tbWVudDcxODE3MDI5NQ== 9599 2020-10-28T19:50:16Z 2020-10-28T19:50:16Z OWNER

I think I made a mistake when I designed the initial decorator. I should have had it work like this:

python @db.register_function() def reverse_string(s): return "".join(reversed(list(s))) As this leaves open the option to add new parameters in the future.

To avoid breaking backwards compatibility I'll use the hack that detects the argument this time, but in the future I'll try to remember to always design decorators to be called like @decorator().

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