From 0d61661e5d2188f65f99f2da27cfc710ea2ee37c Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Thu, 31 Aug 2023 23:17:09 +0200 Subject: [PATCH] fix pagecount --- hn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hn.py b/hn.py index 0fdfd16..2e78ca5 100755 --- a/hn.py +++ b/hn.py @@ -87,7 +87,7 @@ class Client: page = int(self.story_pos / self.stories_in_a_site + 1) - total_pages = math.ceil(len(self.loadedstories)/500) + total_pages = math.ceil(500/len(self.loadedstories)) self.set_footer(f'Page {page}/{total_pages}, loaded {len(self.loadedstories)} stories.') #self.set_footer(f'{self.loadedstories}')