simpler-parent-select

This commit is contained in:
Untone 2025-07-01 01:21:08 +03:00
parent bb41c02d62
commit 30757fb38a

View File

@ -734,7 +734,6 @@ async def set_topic_parent(
# Если устанавливаем корневую тему # Если устанавливаем корневую тему
if parent_id is None: if parent_id is None:
old_parent_ids: list[int] = list(topic.parent_ids or [])
topic.parent_ids = [] # type: ignore[assignment] topic.parent_ids = [] # type: ignore[assignment]
session.commit() session.commit()