draft-create-fix2
All checks were successful
Deploy on push / deploy (push) Successful in 46s

This commit is contained in:
Untone 2025-04-16 11:48:47 +03:00
parent 536c094e72
commit 243f836f0a

View File

@ -116,10 +116,6 @@ async def create_draft(_, info, draft_input):
if "id" in draft_input:
del draft_input["id"]
if "seo" not in draft_input and not draft_input.get("seo"):
body_teaser = draft_input.get("body", "")[:300].split("\n")[:-1].join("\n")
draft_input["seo"] = draft_input.get("lead", body_teaser)
# Добавляем текущее время создания
draft_input["created_at"] = int(time.time())