commit 7ff9f29439ec8b132235bf9d5a53def0086eb66b
parent b7f5c1f2b4adb5e4804a3b31c1d2b83eec923b39
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date: Mon, 25 Jul 2022 21:00:42 +0000
Bugfix for displaying the amount of messages in story
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/retronews.py b/retronews.py
@@ -682,7 +682,7 @@ def hn_parse_search_hit(hit: HNSearchHit) -> Message:
date=datetime.fromtimestamp(hit["created_at_i"]),
author=hit["author"],
title=hit["title"],
- total_comments=hit["num_comments"] or 0,
+ total_comments=(hit["num_comments"] or 0) + 1,
)