We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30819c0 commit f76026cCopy full SHA for f76026c
frameworks/Python/aiohttp/app/views.py
@@ -16,7 +16,6 @@
16
READ_SELECT_ORM = select(World.randomnumber)
17
WRITE_ROW_SQL = 'UPDATE "world" SET "randomnumber"=$2 WHERE id=$1'
18
19
-dumps = ujson.dumps
20
template_path = Path(__file__).parent / 'templates' / 'fortune.jinja'
21
template = jinja2.Template(template_path.read_text())
22
sort_fortunes_orm = attrgetter('message')
@@ -30,6 +29,7 @@
30
29
# 2000000 loops, best of 5: 161 nsec per loop
31
# > python3 -m timeit 'import random; sample = random.sample' 'sample'
32
+dumps = ujson.dumps
33
randint = random.randint
34
sample = random.sample
35
Response = aiohttp.web.Response
0 commit comments