This commit is contained in:
Kseninia Mikhaylova 2024-06-18 09:29:21 +03:00
parent 48eee987dd
commit 158d95e87b
1 changed files with 4 additions and 11 deletions

View File

@ -56,17 +56,10 @@ async def tg_intgr_get(request: Request):
data = requests.get(get_comment_hook)
data_json = data.json()
comment = f"\nhttps://crm.svs-tech.pro/company/personal/user/{bx_id}/tasks/task/view/{task_id}/"
comment += re.sub(
'"',
"",
" ".join(
re.sub(
r"((\[)(.*?)(]))",
"",
data_json["result"]["POST_MESSAGE"].split(" ")[:100],
)
),
)
comment_data = data_json["result"]["POST_MESSAGE"]
comment_data = re.sub('"', '', comment_data)
comment += " ".join(comment_data.split(" ")[:100])
comment += f'\nот {data_json["result"]["AUTHOR_NAME"]}'
mentions = re.findall(