Skip to content

Commit edbf109

Browse files
Update views.py
1 parent 5b7c9d3 commit edbf109

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

frameworks/Python/aiohttp/app/views.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
READ_SELECT_ORM = select(World.randomnumber)
1717
WRITE_ROW_SQL = 'UPDATE "world" SET "randomnumber"=$2 WHERE id=$1'
1818

19-
json_response = partial(json_response, dumps=ujson.dumps)
2019
template_path = Path(__file__).parent / 'templates' / 'fortune.jinja'
2120
template = jinja2.Template(template_path.read_text())
2221
sort_fortunes_orm = attrgetter('message')
@@ -39,7 +38,7 @@ async def json(request):
3938
"""
4039
Test 1
4140
"""
42-
return json_response({'message': 'Hello, World!'})
41+
return json_response({'message': 'Hello, World!'}, dumps=ujson.dumps)
4342

4443

4544
async def single_database_query_orm(request):

0 commit comments

Comments
 (0)