Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
ahopkins committed Dec 27, 2022
1 parent defa7c5 commit 551de4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ from sanic import Sanic
from sanic.response import text
from sanic_session import Session, InMemorySessionInterface

app = Sanic()
app = Sanic(name="ExampleApp")
session = Session(app, interface=InMemorySessionInterface())

@app.route("/")
Expand All @@ -46,7 +46,7 @@ async def index(request):

request.ctx.session['foo'] += 1

return text(request.ctx.session['foo'])
return text(str(request.ctx.session["foo"]))

if __name__ == "__main__":
app.run(host="0.0.0.0", port=8000)
Expand Down

0 comments on commit 551de4b

Please sign in to comment.