string
This commit is contained in:
parent
6635a72f77
commit
48eee987dd
16
app/main.py
16
app/main.py
|
@ -56,12 +56,16 @@ 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 += " ".join(
|
||||
re.sub(
|
||||
r"((\[)(.*?)(]))",
|
||||
"",
|
||||
re.sub('"', "", data_json["result"]["POST_MESSAGE"]).split(" ")[:100],
|
||||
)
|
||||
comment += re.sub(
|
||||
'"',
|
||||
"",
|
||||
" ".join(
|
||||
re.sub(
|
||||
r"((\[)(.*?)(]))",
|
||||
"",
|
||||
data_json["result"]["POST_MESSAGE"].split(" ")[:100],
|
||||
)
|
||||
),
|
||||
)
|
||||
comment += f'\nот {data_json["result"]["AUTHOR_NAME"]}'
|
||||
|
||||
|
|
Loading…
Reference in New Issue