From 10739c69240c0d6f360b16d6cc07120ecb12e30f Mon Sep 17 00:00:00 2001 From: Anon Kaitou Date: Sat, 5 Nov 2022 17:42:43 +0900 Subject: [PATCH] Fix bug for referencing Document.comment_count --- dc_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dc_api.py b/dc_api.py index 21b94b9..4c96550 100644 --- a/dc_api.py +++ b/dc_api.py @@ -95,7 +95,7 @@ def __init__(self, id, board_id, title, author, author_id, contents, images, htm self.time = time self.subject = None def __str__(self): - return f"{self.subject or ''}\t|{self.id}\t|{self.time.isoformat()}\t|{self.author}\t|{self.title}({self.comment_count}) +{self.voteup_count} -{self.votedown_count}\n{self.contents}" + return f"{self.subject or ''}\t|{self.id}\t|{self.time.isoformat()}\t|{self.author}\t|{self.title} +{self.voteup_count} -{self.votedown_count}\n{self.contents}" class Comment: __slots__ = ["id", "is_reply", "author", "author_id", "contents", "dccon", "voice", "time"]