From 4012836eee7ecda564aba9edcf4bbef277c0097d Mon Sep 17 00:00:00 2001 From: Sander Date: Sun, 5 Jan 2020 17:05:27 +0100 Subject: [PATCH] Update example --- examples/hello.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/hello.py b/examples/hello.py index 7c7aaa8..f894d1a 100644 --- a/examples/hello.py +++ b/examples/hello.py @@ -21,13 +21,13 @@ Session(app) @app.route('/set/') -def set(): +async def set(): session['key'] = 'value' return 'ok' @app.route('/get/') -def get(): +async def get(): return session.get('key', 'not set')