From d8c2d6c8f76a9c2b02f3452b0b1f5369b83cffc1 Mon Sep 17 00:00:00 2001 From: Felix Pankratz Date: Thu, 31 Aug 2023 17:56:28 +0200 Subject: [PATCH] await reloading --- hn.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hn.py b/hn.py index 71ea4d9..fa19839 100755 --- a/hn.py +++ b/hn.py @@ -118,7 +118,7 @@ class Client: webbrowser.open(story.link) story.read = True elif c == ord('r'): - self.reload() + await self.reload() elif c == curses.KEY_RESIZE: curses.resize_term(*self.screen.getmaxyx()) self.lines, self.cols = self.screen.getmaxyx()