master
Felix Pankratz 1 year ago
parent c5997da668
commit 82c16051db

@ -32,7 +32,6 @@ class Client:
def load_stories(self, from_pos, to_pos): def load_stories(self, from_pos, to_pos):
for idx, i in enumerate(self.topstories[from_pos:to_pos]): for idx, i in enumerate(self.topstories[from_pos:to_pos]):
#stdscr.clear()
self.set_footer(f'[{spinner_states[idx%4]}] Loading { to_pos - from_pos } stories...') self.set_footer(f'[{spinner_states[idx%4]}] Loading { to_pos - from_pos } stories...')
self.screen.refresh() self.screen.refresh()
self.loadedstories.append(api.get_story(i)) self.loadedstories.append(api.get_story(i))
@ -49,7 +48,7 @@ class Client:
self.stories_in_a_site = self.lines - 3 self.stories_in_a_site = self.lines - 3
title_string = '[Y] Hacker News' title_string = '[Y] Hacker News'
title_string +=' ' * ( self.cols - len(title_string) - 1) + '\n' title_string +=' ' * (self.cols - len(title_string) - 1) + '\n'
self.screen.addstr(title_string, curses.color_pair(1)) self.screen.addstr(title_string, curses.color_pair(1))

Loading…
Cancel
Save