Skip to content

Commit

Permalink
Update python docs (#576)
Browse files Browse the repository at this point in the history
  • Loading branch information
diksipav authored Feb 7, 2025
1 parent c4020ef commit d0eec6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ Below is an example of a web API server running `aiohttp
async def handle(request):
"""Handle incoming requests."""
client = request.app['client']
username = int(request.match_info.get('name'))
username = request.match_info.get('name')
# Execute the query on any pool connection
result = await client.query_single_json(
Expand All @@ -122,7 +122,7 @@ Below is an example of a web API server running `aiohttp
database='my_service',
user='my_service')
# Configure service routes
app.router.add_route('GET', '/user/{name:\w+}', handle)
app.router.add_route('GET', '/user/{name}', handle)
return app
Expand Down

0 comments on commit d0eec6c

Please sign in to comment.