retronews

a featureful fork of the luke8086/retronews hn+lobste.rs tui
Log | Files | Refs | README | LICENSE

commit cf478c404c348e1479205ca5ac8c8e766f576419
parent 97702cc537a12c53622b7674486e8c2ac8b2f989
Author: luke8086 <55237178+luke8086@users.noreply.github.com>
Date:   Wed, 27 Jul 2022 22:10:56 +0000

Rename app_fetch_stories to app_fetch_threads

Diffstat:
Mretronews.py | 10+++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/retronews.py b/retronews.py @@ -325,17 +325,17 @@ def cmd_load_tab(app: AppState, tab: int) -> None: def cmd_load_group(app: AppState, group: Group) -> None: app.group = group - app_fetch_stories(app) + app_fetch_threads(app) def cmd_load_prev_page(app: AppState) -> None: app.group = group_advance_page(app.group, -1) - app_fetch_stories(app) + app_fetch_threads(app) def cmd_load_next_page(app: AppState) -> None: app.group = group_advance_page(app.group, 1) - app_fetch_stories(app) + app_fetch_threads(app) def cmd_open(app: AppState) -> None: @@ -501,7 +501,7 @@ def app_load_messages( app_select_message(app, selected_message, show_pager) -def app_fetch_stories(app: AppState) -> None: +def app_fetch_threads(app: AppState) -> None: fn = partial(group_search_threads, app.group) flash = f"Fetching stories from '{app.group.label}' (page {app.group.page})..." @@ -728,7 +728,7 @@ def app_init(screen: "curses._CursesWindow") -> AppState: group = GROUP_TABS[0] app = AppState(screen=screen, colors=Colors(), db=db, group=group) - app_fetch_stories(app) + app_fetch_threads(app) return app