home / github / issue_comments

Menu
  • GraphQL API

issue_comments: 637009509

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/790#issuecomment-637009509 https://api.github.com/repos/simonw/datasette/issues/790 637009509 MDEyOklzc3VlQ29tbWVudDYzNzAwOTUwOQ== 9599 2020-06-01T17:44:55Z 2020-06-01T17:46:18Z OWNER Problem with `datasette.fetch_and_clear_messages(request, response)` is that I want to call it from the template (so we only clear messages if they have been displayed) - but by that point in the code the `Response` object has not yet been created, so it can't have cookie set on it to clear the list of messages. Solution: call it `datasette.show_messages(request)` and have it update internal state on the `datasette` object such that a later call to `write_messages_to_response(request, response)` knows to clear the cookie. {"total_count": 0, "+1": 0, "-1": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0} 628499086  
Powered by Datasette · Queries took 1.974ms