Skip to content

Commit f76026c

Browse files
Update views.py
1 parent 30819c0 commit f76026c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/Python/aiohttp/app/views.py

Lines changed: 1 addition & 1 deletion
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-
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')
@@ -30,6 +29,7 @@
3029
# 2000000 loops, best of 5: 161 nsec per loop
3130
# > python3 -m timeit 'import random; sample = random.sample' 'sample'
3231
# 2000000 loops, best of 5: 161 nsec per loop
32+
dumps = ujson.dumps
3333
randint = random.randint
3434
sample = random.sample
3535
Response = aiohttp.web.Response

0 commit comments

Comments
 (0)