From 98138669a5ad6052c4ed4f08e5148b02bbc216c1 Mon Sep 17 00:00:00 2001 From: Prtolem <66413287+prtolem@users.noreply.github.com> Date: Wed, 16 Nov 2022 21:16:39 +0300 Subject: [PATCH 1/2] update YOO_MONEY_LINK_REGEXP fixed the regular expression because I couldn't find the link in the html code because it was encoded in url encoding --- glQiwiApi/yoo_money/methods/build_auth_url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/glQiwiApi/yoo_money/methods/build_auth_url.py b/glQiwiApi/yoo_money/methods/build_auth_url.py index acd99bad..7042f8cf 100644 --- a/glQiwiApi/yoo_money/methods/build_auth_url.py +++ b/glQiwiApi/yoo_money/methods/build_auth_url.py @@ -4,7 +4,7 @@ from glQiwiApi.core.abc.api_method import APIMethod, Request, ReturningType from glQiwiApi.core.session.holder import HTTPResponse -YOO_MONEY_LINK_REGEXP = re.compile(r'https?://yoomoney.ru/oauth2/authorize[?]requestid=\w+') +YOO_MONEY_LINK_REGEXP = re.compile(r'https%3A%2F%2Fyoomoney.ru%2Foauth2%2Fauthorize%3Frequestid%3D\w+') class BuildAuthURL(APIMethod[str]): From 91f2901229a4013a343f63f39a158ae3e302d398 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Wed, 16 Nov 2022 18:20:53 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- glQiwiApi/yoo_money/methods/build_auth_url.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/glQiwiApi/yoo_money/methods/build_auth_url.py b/glQiwiApi/yoo_money/methods/build_auth_url.py index 7042f8cf..fd74a8a7 100644 --- a/glQiwiApi/yoo_money/methods/build_auth_url.py +++ b/glQiwiApi/yoo_money/methods/build_auth_url.py @@ -4,7 +4,9 @@ from glQiwiApi.core.abc.api_method import APIMethod, Request, ReturningType from glQiwiApi.core.session.holder import HTTPResponse -YOO_MONEY_LINK_REGEXP = re.compile(r'https%3A%2F%2Fyoomoney.ru%2Foauth2%2Fauthorize%3Frequestid%3D\w+') +YOO_MONEY_LINK_REGEXP = re.compile( + r'https%3A%2F%2Fyoomoney.ru%2Foauth2%2Fauthorize%3Frequestid%3D\w+' +) class BuildAuthURL(APIMethod[str]):