From 94798925b58601863fb04cc4636458c10e76aecc Mon Sep 17 00:00:00 2001 From: Kseninia Mikhaylova Date: Tue, 28 May 2024 10:34:32 +0300 Subject: [PATCH] reqex fix --- app/main.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/main.py b/app/main.py index dc7b408..d26fad3 100644 --- a/app/main.py +++ b/app/main.py @@ -7,8 +7,6 @@ from app.constants import * app = FastAPI() -tg = {38: 198225670} - @app.get("/") def read_root(): @@ -57,7 +55,7 @@ async def tg_intgr_get(request: Request): ) data = requests.get(get_comment_hook) data_json = data.json() - comment = re.sub(r"\\[USER=\d+\]|\[\/USER\]", "", data_json["result"]["POST_MESSAGE"]) + comment = re.sub(r"\[USER=\d+\]|\[\/USER\]", "", data_json["result"]["POST_MESSAGE"]) comment += f'\nhttps://crm.svs-tech.pro/company/personal/user/{bx_id}/tasks/task/view/{task_id}/' mentions = re.findall(rf"\[USER=({bx_id})\]", comment)