MCPcopy Create free account
hub / github.com/Autoparallel/learner / refresh_papers

Method refresh_papers

crates/learnerd/src/tui/mod.rs:206–211  ·  view source on GitHub ↗

Refreshes the list of papers in the TUI

(&mut self)

Source from the content-addressed store, hash-verified

204
205 /// Refreshes the list of papers in the TUI
206 async fn refresh_papers(&mut self) -> Result<()> {
207 self.state.papers =
208 Query::list_all().order_by(OrderField::Title).execute(&mut self.learner.database).await?;
209 self.state.needs_redraw = true;
210 Ok(())
211 }
212}
213
214impl UserInteraction for Tui {

Callers 1

execute_commandMethod · 0.80

Calls 2

order_byMethod · 0.80
executeMethod · 0.45

Tested by

no test coverage detected