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"]