diff --git a/get-started/part2.md b/get-started/part2.md index 088e06f720..f86f3a1b6c 100644 --- a/get-started/part2.md +++ b/get-started/part2.md @@ -116,14 +116,14 @@ app = Flask(__name__) @app.route("/") def hello(): try: - visits = redis.incr('counter') + visits = redis.incr("counter") except RedisError: visits = "cannot connect to Redis, counter disabled" html = "

Hello {name}!

" \ "Hostname: {hostname}
" \ "Visits: {visits}" - return html.format(name=os.getenv('NAME', "world"), hostname=socket.gethostname(), visits=visits) + return html.format(name=os.getenv("NAME", "world"), hostname=socket.gethostname(), visits=visits) if __name__ == "__main__": app.run(host='0.0.0.0', port=80)