From 795f037f1bc01f678ca3097f15aff0976fefaaf5 Mon Sep 17 00:00:00 2001 From: dddennnisss Date: Fri, 14 Aug 2026 14:39:30 +0700 Subject: [PATCH] =?UTF-8?q?handlers.py:=20=D0=B8=D0=B7=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BA=D0=B0=D0=B5=D0=BC=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BD=20?= =?UTF-8?q?=D0=B8=D0=B7=20email?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- photo_bot/handlers.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/photo_bot/handlers.py b/photo_bot/handlers.py index 9198c72..db87e6e 100644 --- a/photo_bot/handlers.py +++ b/photo_bot/handlers.py @@ -115,11 +115,14 @@ async def check_moderation_status(user_id: str) -> dict: from photo_bot.photo_processor import API_URL, API_KEY import requests + # Извлекаем логин из email (user_id@tcs.sibcem.ru -> user_id) + login = user_id.split('@')[0] + status_url = API_URL.replace("/upload/", "/status/") try: response = requests.get( status_url, - params={"user_id": user_id}, + params={"user_id": login}, headers={"X-API-Key": API_KEY}, timeout=15, verify=False