From 02e02f743aba19fe13d041b92ade81c7179cfe57 Mon Sep 17 00:00:00 2001 From: white Date: Wed, 27 Jul 2022 23:46:48 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=85=20isort=20and=20black?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- p2proxy/server/proxy.py | 2 +- pyqiwip2p/notify/__init__.py | 2 +- pyqiwip2p/p2p_types/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/p2proxy/server/proxy.py b/p2proxy/server/proxy.py index aca80e1..9faaecb 100644 --- a/p2proxy/server/proxy.py +++ b/p2proxy/server/proxy.py @@ -3,7 +3,7 @@ import validators from starlette.requests import Request from starlette.responses import HTMLResponse, RedirectResponse -from starlette.routing import Router, Route +from starlette.routing import Route, Router router = Router() diff --git a/pyqiwip2p/notify/__init__.py b/pyqiwip2p/notify/__init__.py index 80b1321..9a598f4 100644 --- a/pyqiwip2p/notify/__init__.py +++ b/pyqiwip2p/notify/__init__.py @@ -67,7 +67,7 @@ class WebhookServer(object): def check_headers(self, headers): if ( "content-type" in headers - and 'application/json' in headers["content-type"] + and "application/json" in headers["content-type"] and "X-Api-Signature-SHA256" in headers ): return True diff --git a/pyqiwip2p/p2p_types/__init__.py b/pyqiwip2p/p2p_types/__init__.py index 45ba37e..4ea57c3 100644 --- a/pyqiwip2p/p2p_types/__init__.py +++ b/pyqiwip2p/p2p_types/__init__.py @@ -1,5 +1,5 @@ -from pyqiwip2p.p2p_types.qiwi_datetime import * from pyqiwip2p.p2p_types.custom_fields import * from pyqiwip2p.p2p_types.customer import * from pyqiwip2p.p2p_types.errors import * +from pyqiwip2p.p2p_types.qiwi_datetime import * from pyqiwip2p.p2p_types.responses import *