From f7e1d4f294378c6d5356289867cb53cbd8d03c36 Mon Sep 17 00:00:00 2001 From: Andrew Shu Date: Tue, 19 Aug 2025 19:03:37 -0700 Subject: [PATCH] Mark some Topic API properties as nonnull voted, bookmarked, and ignored cannot be None. see TopicQuery._process_result() in tildes/models/topic/topic_query.py --- tildes/openapi_beta.yaml | 3 --- tildes/tildes/models/topic/topic_query.py | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/tildes/openapi_beta.yaml b/tildes/openapi_beta.yaml index 5204d74..8c3c0f0 100644 --- a/tildes/openapi_beta.yaml +++ b/tildes/openapi_beta.yaml @@ -316,13 +316,10 @@ components: nullable: true voted: type: boolean - nullable: true bookmarked: type: boolean - nullable: true ignored: type: boolean - nullable: true official: type: boolean tags: diff --git a/tildes/tildes/models/topic/topic_query.py b/tildes/tildes/models/topic/topic_query.py index 88694f9..0eb0d72 100644 --- a/tildes/tildes/models/topic/topic_query.py +++ b/tildes/tildes/models/topic/topic_query.py @@ -142,7 +142,7 @@ class TopicQuery(PaginatedQuery): topic.bookmark_created_time = None topic.last_visit_time = None topic.comments_since_last_visit = None - topic.user_bookmarked = None + topic.user_bookmarked = False topic.user_ignored = False else: topic = result.Topic