main_topic-fix3
All checks were successful
Deploy on push / deploy (push) Successful in 56s

This commit is contained in:
2025-02-12 00:47:39 +03:00
parent 1585e55342
commit a9dd593ac8
2 changed files with 1 additions and 6 deletions

View File

@@ -662,11 +662,7 @@ def get_main_topic_slug(topics):
main_topic = next((t for t in topics_list if t.main), None)
if main_topic:
return {
"slug": main_topic.topic.slug,
"title": main_topic.topic.title,
"id": main_topic.topic.id
}
return main_topic.topic.dict()
# If no main topic found, return default
return {"slug": "notopic", "title": "no topic", "id": 0}