topic-title-fix
Some checks failed
Deploy on push / deploy (push) Failing after 2m33s

This commit is contained in:
2025-08-23 12:48:30 +03:00
parent 19a964585e
commit 0e1e7813be

View File

@@ -57,7 +57,7 @@ def create_draft_dict(draft: Draft) -> dict[str, Any]:
{"id": a.id, "name": a.name, "slug": a.slug, "pic": getattr(a, "pic", None)} for a in (draft.authors or [])
],
"topics": [
{"id": t.id, "name": t.name, "slug": t.slug, "is_main": getattr(t, "is_main", False)}
{"id": t.id, "name": t.title, "slug": t.slug, "is_main": getattr(t, "is_main", False)}
for t in (draft.topics or [])
],
}