From cc0fc74f824b6ea0124ac3f024e4781b42de3ceb Mon Sep 17 00:00:00 2001 From: Capybara-z Date: Tue, 18 Feb 2025 14:31:43 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=BF=D0=B0=D1=80?= =?UTF-8?q?=D1=81=D0=B8=D0=BD=D0=B3=D0=B0=20=D0=B2=D1=80=D0=B5=D0=BC=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - исправлен парсинг времени если передается без запятой --- handlers/keys/subscriptions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handlers/keys/subscriptions.py b/handlers/keys/subscriptions.py index 9fe44941..f267c623 100644 --- a/handlers/keys/subscriptions.py +++ b/handlers/keys/subscriptions.py @@ -161,7 +161,7 @@ async def handle_subscription(request, old_subscription=False): candidate = parts[-1] if parts else "" candidate_decoded = urllib.parse.unquote(candidate) # Ищем формат "11D,1H", либо "1H" - m = re.search(r'(?:(\d+)D,)?(\d+)H', candidate_decoded) + m = re.search(r'(?:(\d+)D,?)?(\d+)H', candidate_decoded) if m: d = int(m.group(1)) if m.group(1) else 0 h = int(m.group(2))