chore: Style fixes

This commit is contained in:
Damir Jelić 2022-02-02 14:43:30 +01:00
parent e62cfe068a
commit 3dd8051707
3 changed files with 5 additions and 5 deletions

View File

@ -915,7 +915,7 @@ class ProxyDaemon:
return web.json_response(
{
"errcode": "M_FORBIDDEN",
"error": "You do not have permission to send the event."
"error": "You do not have permission to send the event.",
},
headers=CORS_HEADERS,
status=403,
@ -958,8 +958,9 @@ class ProxyDaemon:
try:
content["url"] = await self._decrypt_uri(content["url"], client)
if (
"info" in content and "thumbnail_url" in content["info"]
and not content["info"]["thumbnail_url"] == None
"info" in content
and "thumbnail_url" in content["info"]
and content["info"]["thumbnail_url"] is not None
):
content["info"]["thumbnail_url"] = await self._decrypt_uri(
content["info"]["thumbnail_url"], client

View File

@ -501,6 +501,5 @@ if False:
return search_result
else:
INDEXING_ENABLED = False

View File

@ -63,7 +63,7 @@ async def init(data_dir, server_conf, send_queue, recv_queue):
)
# 100 MB max POST size
app = web.Application(client_max_size=1024 ** 2 * 100)
app = web.Application(client_max_size=1024**2 * 100)
app.add_routes(
[